Exemple #1
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.name == "Spacecraft" && !playerMaster.isInvulnerable)
     {
         playerMaster.CallEventTakeDamage();
     }
 }
Exemple #2
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.name == "Spacecraft")
     {
         hazardMaster.CallEventDestroyed();
         playerMaster.CallEventTakeDamage();
     }
 }