Exemple #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (player != null && collision.gameObject.tag == "Player")
     {
         player.AcquireKey(keyID);
         GameManager.gm.AddDoorToBeSaved(door);
         GameManager.gm.AddKeyToBeSaved(gameObject);
         doorScript.openDoor();
         gameObject.SetActive(false);
     }
 }