Esempio n. 1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         PlayerPossession playerPossession = other.GetComponent <PlayerPossession>();
         if (playerPossession.isPossessed && playerPossession.item.CompareTag("Book"))
         {
             sfx.Play(0);
             playerPossession.Depossess();
             Destroy(playerPossession.item);
             playerPossession.item = null;
             FinalLevelManager.BurnBook();
         }
     }
 }
Esempio n. 2
0
 public static void BookPlaced()
 {
     FinalLevelManager.PlaceBook();
 }