IEnumerator reset(RatbossA0 a) { if (a.ratOut) { yield return(a.returnIntoDoor()); } a.resetRatLocations(); a.enabled = false; yield return(new WaitForEndOfFrame()); a.enabled = true; this.enabled = false; }
private void Awake() { player = GameObject.Find("Player").GetComponent <Transform>(); A0 = GetComponent <RatbossA0>(); }
public void Awake() { spawner = GetComponent <BulletSpawner>(); a0 = GetComponent <RatbossA0>(); }