unity get game object c# code example
Example 1: unity find gameobject by name
GameObject enemy = GameObject.Find("enemy");
Example 2: unity gameobject.find
GameObject obj = GameObject.Find("/Parent/Child/ChildOfChild");
GameObject enemy = GameObject.Find("enemy");
GameObject obj = GameObject.Find("/Parent/Child/ChildOfChild");