void Start() { for (int i = 0; i < 4; i++) { wallHp[i] = _Wall[i].GetComponent <WallHP>(); } rand = GameObject.Find("CreatePos").GetComponent <RandomEnemy>(); }
void Start() { rand = transform.parent.GetComponent <RandomEnemy>(); }