Exemplo n.º 1
0
    public void RpcDealDamage()
    {
        //NetworkServer.Destroy(gameObject);

        playerMng.peoples--;

        if (playerMng.match && playerMng.peoples == 1)
        {
            //Cambiodeescena.
            winner.RpcWin(type);
        }
    }