Exemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D player)
 {
     if (player.gameObject.tag == "Player")
     {
         if (is_active == true)
         {
             playerLevel.conversationDisplay("Get to the castle! Orcs are still alive!");
         }
         if (is_active == false && introCompleted == false)
         {
             is_active = true;
             playerLevel.conversationDisplay("PRINCESS! I Have urgent news! Some orc thugs have broken into the castle gardens!" +
                                             "You're the best fighter in town, please go save your home!");
         }
         if (introCompleted == true)
         {
             playerLevel.conversationDisplay("Thanks for your help, Princess!");
         }
     }
 }