public void Shoot(float rotationZ) { var shootData = new FiringJson(rotationZ, isHost, lobbyDataindex); var reqShoot = JsonUtility.ToJson(shootData); m_socketIoComponent.Emit("fire", new JSONObject(reqShoot)); }
void OnOtherFiring(SocketIOEvent socketIOEvent) { var shootData = FiringJson.CreateFromJson(socketIOEvent.data.ToString()); GameCore.gamemanager.OthetShoot(shootData.isHost, shootData.rotationZ); }