Exemplo n.º 1
0
 private void OnTriggerEnter(Collider col)
 {
     if (col.CompareTag("Player"))
     {
         if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.warning)
         {
             Countdown_script.Countinit();
         }
         else if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.caution)
         {
             Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning;
             Countdown_script.Countinit();
         }
         else
         {
             Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning;
         }
     }
 }
Exemplo n.º 2
0
 private void OnTriggerEnter(Collider col)
 {
     if (col.CompareTag("Player"))
     {
         if (col.GetComponent <PlayerControl>().GetisMoving() == true)
         {
             if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.warning)
             {
                 Countdown_script.Countinit();
             }
             else if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.caution)
             {
                 Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning;
                 Countdown_script.Countinit();
             }
             else
             {
                 Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning;
             }
         }
     }
 }