Пример #1
0
 void Start()
 {
     for (int i = 0; i < 4; i++)
     {
         wallHp[i] = _Wall[i].GetComponent <WallHP>();
     }
     rand = GameObject.Find("CreatePos").GetComponent <RandomEnemy>();
 }
Пример #2
0
 void Start()
 {
     rand = transform.parent.GetComponent <RandomEnemy>();
 }