Ejemplo n.º 1
0
    public void SendFire(float force)
    {
        Complete.TankHealth th = this.player.GetComponent <Complete.TankHealth>();
        var          health    = th.GetCurrentHealth();
        PlayInfoData playInfo  = new PlayInfoData(user.UserId, user.UserName, localTransform, true, (int)health, force);
        ProtocalData data      = new ProtocalData(ActionCode.MsgPlayInfoData, playInfo);

        Send(data);
    }
Ejemplo n.º 2
0
    private void SendLocalPlayer()
    {
        Complete.TankHealth th = this.player.GetComponent <Complete.TankHealth>();
        var          health    = th.GetCurrentHealth();
        PlayInfoData playInfo  = new PlayInfoData(user.UserId, user.UserName, player.transform, false, (int)health, 15f);
        ProtocalData data      = new ProtocalData(ActionCode.MsgPlayInfoData, playInfo);

        Send(data);
    }