Exemplo n.º 1
0
 void OnTriggerExit(Collider c)
 {
     if (c.tag.Equals("Player"))
     {
         TipPanel.GetInstance().SetVisible(false);
     }
 }
Exemplo n.º 2
0
 void ExitConditions(Collider c)
 {
     if (c.tag.Equals("Player"))
     {
         BotCollector playerInventory = c.GetComponent <BotCollector>();
         if (playerInventory.getBots() == numBots)
         {
             StartCoroutine(ExitScene());
         }
         else
         {
             TipPanel.GetInstance().SetText("You're missing bots.");
             TipPanel.GetInstance().SetVisible(true);
         }
     }
 }