Why nothing happens???
I have script from online to kill when you walk into it.
public class ExampleClass : MonoBehaviour { void OnTriggerEnter(Collider other) { Destroy(other.gameObject); } }
I get error when my player goes to it. 2d game
Comment
Your answer
Follow this Question
Related Questions
Top Down 2D, facing direction bools 0 Answers
2D Top-Down Shooter Glitch With Camera Focus 0 Answers
I use prefabs in prefabs and when I correct the root prefab of child prefabs, items don't correct. 0 Answers
2D Mobile: How to mask a gameObject with another gameObject (with soft edges) 0 Answers
Walking around a sprite 1 Answer