Ejemplo n.º 1
0
    public void Die(FxType type = FxType.None)
    {
        if (PhotonNetwork.IsMasterClient == false)
        {
            return;
        }

        Fx.CreateAll(type, transform.position + new Vector3(0, 0.5f, 0));
        photonView.RPC(nameof(RpcDie), RpcTarget.All);
    }