Hello, guys. I need Your help.
In Hierarchy Unity had started to add numbers and it ruins my script.
In script I have:
void OnCollisionEnter2D(Collision2D col){
if (col.gameObject.name == "Enemy 1" || col.gameObject.name == "SAW" || col.gameObject.name == "END")
Application.LoadLevel (Application.loadedLevel);
}
And it works perfectly fine. But when I’m adding new objects or prefabs Unity add numbers to it. How may I change it?
Hope You will help.
Thank You.