Exemple #1
0
 private void throwOnHole(Collider2D collider)
 {
     if (collider.name.Equals("Player"))
     {
         worldScript.gameOver();
     }
     else if (collider.name.Equals("Enemy") || collider.name.Equals("StoneEnemy"))
     {
         destroyEnemy(collider);
     }
 }