예제 #1
0
        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();
        }
예제 #2
0
 void Start()
 {
     networkManager = NetworkManager.singleton as NetworkManagerExt;
     startCountdown = GetComponent <CountdownTimer>();
 }