Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (!teleActivate.checkTeleporterStatus())
     {
         GameObject[] aliveFood = GameObject.FindGameObjectsWithTag("food");
         playerSize = playerHealthScript.getHealth();
         if (playerSize >= targetSize || aliveFood.Length == 0)
         {
             activateTransporter();
         }
     }
 }