Esempio n. 1
0
 public void Respawn(PlatformingCharacter player)
 {
     if (player.GetComponent <NetworkIdentity>() == null)
     {
         Reset(player);
     }
     else if (player.GetComponent <NetworkIdentity>().isLocalPlayer)
     {
         Reset(player);
     }
 }
Esempio n. 2
0
 private void PlatformingCharacter_OnStomp(PlatformingCharacter obj)
 {
     lastBoost = NetworkTime.time;
     obj.GetComponent <NetworkControls>().CmdStomp(NetworkTime.time, obj.transform.position);
 }