Esempio n. 1
0
 void Die()
 {
     GameFlow.CheckPlayersLeft();
     Instantiate(explodeParticle, gameObject.transform.position, Quaternion.identity);
     this.photonView.RPC("DestroyPlayer", RpcTarget.OthersBuffered);
     Destroy(this.gameObject);
 }
Esempio n. 2
0
 void DestroyPlayer(PhotonMessageInfo info)
 {
     Instantiate(explodeParticle, info.photonView.gameObject.transform.position, Quaternion.identity);
     Destroy(info.photonView.gameObject);
     GameFlow.CheckPlayersLeft();
 }