Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         DeathScript deathscript = other.gameObject.GetComponent <DeathScript>() as DeathScript;
         deathscript.SetCheckpoint(checkpointSpawn);
     }
 }