public void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { if (AllEnemiesDead) { return; } RoomAnimator.SetBool(HideWalls, false); RoomAnimator.SetBool(ShowWalls, true); } }
public void Start() { RoomAnimator.SetBool(HideWalls, true); RoomAnimator.SetBool(ShowWalls, false); }