Beispiel #1
0
 void RpcRespawn()
 {
     if (destroyOnDeath)
     {
         Destroy(gameObject);
     }
     else
     {
         if (isLocalPlayer)
         {
             transform.position = playerSpawner.GetRandomSpawn().position;
         }
     }
 }