Example #1
0
    public void GetDamage()
    {
        if (NetPlayer == null)
        {
            return;
        }

        if (CanFly)
        {
            NetPlayer.CmdDecidePlayerDodge(this.GetComponent <NetworkIdentity>().netId);
        }
        else
        {
            Debug.Log(NetPlayer);
            Debug.Log(gameObject.GetComponent <NetworkIdentity>().netId);
            NetPlayer.CmdGetDamage(gameObject.GetComponent <NetworkIdentity>().netId, PetWarrior.isUpgrade);
        }
    }