// Use this for initialization void Awake() { _state = 0; _timer = 0; _root = GetComponent <RootController>(); _meteoriteGenerator = GameObject.Find("MeteoriteManager").GetComponent <MeteoriteGenerator>(); _alienPlanet = GameObject.Find("AlienPlanet").GetComponent <AlienPlanet>(); _alienAttackManager = GameObject.Find("AlienAttackManager").GetComponent <AlienAttackManager>(); _alienAttackManager.SetEnable(false); for (int i = 0; i < _signal.Length; i++) { _signal[i].SetActive(false); } _coordinate.SetActive(false); }
// Use this for initialization void Start() { _alienAttackManager = this.transform.parent.GetComponent <AlienAttackManager>(); }
void Start() { anim.SetBool("IsKnocking", true); _attackTimer = -2.0f; _alienAttackManager = this.transform.parent.parent.GetComponent <AlienAttackManager>(); }