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); }
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); }