void CmdPlayerExplode() { // spawn an explosion if (explosionSystem) { GameObject explosion = Instantiate(explosionSystem, transform.position, Quaternion.identity); NetworkServer.Spawn(explosion); } // call all the clients and set this player as dead RpcDead(); networkManager = NetworkManager.singleton as NetworkManagerExt; gamePrep.incrementDead(); }
void Start() { networkManager = NetworkManager.singleton as NetworkManagerExt; startCountdown = GetComponent <CountdownTimer>(); }