Beispiel #1
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Player")
     {
         print("player DETECTED");
         Destroy(gameObject);
         respawn.RandomSpawn();
         gm.scoreCount = gm.scoreCount + 1;
     }
 }