public void OnRecvRoomPosition(int id, Vector3 targetPos, LOUNGE_ACTION_TYPE type) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) if (!(HomePeople == null)) { HomePeople.SetInitialPositionLoungePlayer(id, targetPos, type); } }
private void LateUpdate() { if (MonoBehaviourSingleton <LoungeManager> .IsValid() && actionType != player.CurrentActionType) { actionType = player.CurrentActionType; RefreshUI(); } }
public bool OnRecvRoomJoined(Lounge_Model_RoomJoined model) { //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) Logd("OnRecvRoomJoined. cid={0}", model.cid); if (MonoBehaviourSingleton <LoungeManager> .IsValid()) { MonoBehaviourSingleton <LoungeManager> .I.OnRecvRoomJoined(model.cid); } if (model.cid != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id && MonoBehaviourSingleton <LoungeManager> .IsValid()) { if (!MonoBehaviourSingleton <LoungeManager> .IsValid()) { return(true); } if (MonoBehaviourSingleton <LoungeManager> .I.HomePeople == null) { return(true); } if (MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara == null) { return(true); } Vector3 position = MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara._transform.get_position(); LOUNGE_ACTION_TYPE actionType = MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara.GetActionType(); RoomPosition(model.cid, position, actionType); } if (FieldManager.IsValidInGame()) { Protocol.Try(delegate { MonoBehaviourSingleton <LoungeMatchingManager> .I.SendInfo(delegate { }, false); }); } string empty = string.Empty; LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(model.cid); if (slotInfoByUserId != null) { empty = slotInfoByUserId.userInfo.name; } else if (MonoBehaviourSingleton <InGameRecorder> .IsValid()) { InGameRecorder.PlayerRecord playerByUserId = MonoBehaviourSingleton <InGameRecorder> .I.GetPlayerByUserId(model.cid); if (playerByUserId != null) { empty = playerByUserId.charaInfo.name; } } return(true); }
public void RoomPosition(int targetUserId, Vector3 position, LOUNGE_ACTION_TYPE type) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) Lounge_Model_RoomPosition lounge_Model_RoomPosition = new Lounge_Model_RoomPosition(); lounge_Model_RoomPosition.id = 1005; lounge_Model_RoomPosition.cid = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id; lounge_Model_RoomPosition.pos = position; lounge_Model_RoomPosition.aid = (int)type; Send(targetUserId, lounge_Model_RoomPosition, typeof(Lounge_Model_RoomPosition), true, null, null); }
private void SendRoomPosition(int cid) { //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) if (!(HomePeople == null) && !(HomePeople.selfChara == null)) { Vector3 position = HomePeople.selfChara._transform.get_position(); LOUNGE_ACTION_TYPE actionType = HomePeople.selfChara.GetActionType(); MonoBehaviourSingleton <LoungeNetworkManager> .I.RoomPosition(cid, position, actionType); } }
public void SetInitialPosition(Vector3 pos, LOUNGE_ACTION_TYPE type) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) InitialPos = pos; base._transform.set_position(InitialPos.Value); base.moveTargetPos = InitialPos.Value; if (type == LOUNGE_ACTION_TYPE.SIT) { OnRecvSit(); } }
private IEnumerator DoSetInitialPositionLoungePlayer(int id, Vector3 pos, LOUNGE_ACTION_TYPE type) { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) LoungePlayer target = GetLoungePlayer(id); while (target == null || target.get_gameObject() == null) { target = GetLoungePlayer(id); yield return((object)null); } while (target.isLoading) { yield return((object)null); } target.SetInitialPosition(pos, type); }
public void SetInitialPositionLoungePlayer(int id, Vector3 initialPos, LOUNGE_ACTION_TYPE type) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) this.StartCoroutine(DoSetInitialPositionLoungePlayer(id, initialPos, type)); }
public void SetPlayer(LoungePlayer player) { this.player = player; actionType = player.CurrentActionType; }