void Start() { audioSource = GetComponent <AudioSource>(); animator = GetComponent <Animator>(); collider2d = GetComponent <Collider2D>(); if (hasPartner) { partnerController = partner.GetComponent <DoorSpriteController>(); } numEnemies = enemies.Count; setState(state); }
void Start() { controller = door.GetComponent <DoorSpriteController>(); audioSource = GetComponent <AudioSource>(); triggered = false; }