Example #1
0
 // if collider is marked as trigger we can no longer use onCollisionEnter() because it can no longer collide. It is now a trigger, so we use onTriggerEnter()
 void OnTriggerEnter(Collider collider)
 {
     if (collider.name == "Player")
     {
         gameManager.CompleteLevel();
     }
 }
Example #2
0
 void OnTriggerEnter2D()
 {
     if (PS.score >= 30)
     {
         gameManage.CompleteLevel();
     }
     else
     {
         if ((TT != null) && (GOS != null))
         {
             TT.notEnoughMicroship = true;
             GOS.Lose();
         }
     }
 }
Example #3
0
 void OnTriggerEnter()
 {
     gameManager.CompleteLevel();
 }
Example #4
0
 private void OnTriggerEnter(Collider other)
 {
     gameManage.CompleteLevel();
 }
 private void OnTriggerEnter(Collider target)
 {
     gameManager.CompleteLevel();
 }