Exemple #1
0
        // -------------------------------------------------------------------------------
        // 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;
        }
Exemple #2
0
 // -------------------------------------------------------------------------------
 // Death
 // -------------------------------------------------------------------------------
 protected override void Death()
 {
     Utl.SpawnItems(items, transform.position, dropPrefab);
     base.Death();
 }