Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (GameTag.IsPlayer(other.gameObject))
     {
         gameManager.Victory();
     }
 }
Example #2
0
 private void OnTriggerExit(Collider other)
 {
     if (GameTag.IsPlayer(other.gameObject) && !IsPlayerSpawn)
     {
         canCooldown = true;
     }
 }
Example #3
0
 private void OnTriggerEnter(Collider other)
 {
     if (GameTag.IsPlayer(other.gameObject))
     {
         other.gameObject.GetComponent <PlayerManager>().PickUp(PickUpType);
         Destroy(gameObject);
     }
 }