// ------------------------------------------------------------------------------- // Open // Auto open the door (either by player or via external action) // ------------------------------------------------------------------------------- public void Open() { //animator.SetBool("IsOpen", true); SoundController.Play(openSound, transform.position); Utl.SpawnItems(items, transform.position, dropPrefab); looted = true; }
// ------------------------------------------------------------------------------- // Death // ------------------------------------------------------------------------------- protected override void Death() { Utl.SpawnItems(items, transform.position, dropPrefab); base.Death(); }