private IEnumerator DoEnd() { yield return((object)MonoBehaviourSingleton <TransitionManager> .I.Out(TransitionManager.TYPE.WHITE)); if (MonoBehaviourSingleton <StatusStageManager> .IsValid()) { MonoBehaviourSingleton <StatusStageManager> .I.SetSmithCharacterActivateFlag(true); } EndDirectionUI(); DispatchEvent("SKIP", null); if (Object.op_Implicit(director)) { director.Reset(); Object.Destroy(director.get_gameObject()); } }
private bool HasRushTimeBonus() { if (!IsRush()) { return(false); } if (!MonoBehaviourSingleton <InGameProgress> .IsValid()) { return(false); } if (MonoBehaviourSingleton <InGameProgress> .I.rushTimeBonus == null) { return(false); } return(MonoBehaviourSingleton <InGameProgress> .I.rushTimeBonus.Count > 0); }
public bool Damage(int damage) { if (!IsValid()) { return(false); } if (damage <= 0) { return(false); } AegisParam aegisParam = aegisParams[0]; aegisParam.hp -= damage; if (aegisParam.hp <= 0) { _ReleaseEffect(ref aegisParam.effect, true); aegisParams.RemoveAt(0); _syncParam.nowNum = aegisParams.Count; _syncParam.nowHp = ((_syncParam.nowNum != 0) ? aegisParams[0].hp : 0); _UpdateGaugeUI(); if (MonoBehaviourSingleton <SoundManager> .IsValid()) { if (_setupParam.allBreakSeId > 0 && !IsValid()) { SoundManager.PlayOneShotSE(_setupParam.allBreakSeId, null, null); } else if (_setupParam.breakSeId > 0) { SoundManager.PlayOneShotSE(_setupParam.breakSeId, null, null); } } } else { _syncParam.nowHp = aegisParam.hp; } _syncParam.isChange = true; if (!IsValid()) { isNeedUpdate = false; if (MonoBehaviourSingleton <UIEnemyAnnounce> .IsValid()) { MonoBehaviourSingleton <UIEnemyAnnounce> .I.RequestAnnounce(owner.enemyTableData.name, STRING_CATEGORY.ENEMY_SHIELD, 3u); } } return(true); }
private void LateUpdate() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Expected O, but got Unknown //IL_0023: 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) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Unknown result type (might be due to invalid IL or missing references) Transform val = cameraAnim.get_transform(); if (MonoBehaviourSingleton <AppMain> .IsValid()) { if (!replaceCameraRoationWithCutSceneRotation) { Vector3 localScale = val.get_localScale(); if (localScale.y > 0.1f) { replaceCameraRoationWithCutSceneRotation = true; cutChangePosition = val.get_position(); cutChangeRotation = val.get_rotation(); } } else if (replaceCameraRoationWithCutSceneRotation) { Vector3 localScale2 = val.get_localScale(); if (localScale2.y > 0.1f) { if (MonoBehaviourSingleton <AppMain> .IsValid() && MonoBehaviourSingleton <AppMain> .I.mainCameraTransform != null) { MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.set_position(cutChangePosition); MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.set_rotation(cutChangeRotation); } } else { replaceCameraRoationWithCutSceneRotation = false; } } } }
private void ProcessBackKey() { if (MonoBehaviourSingleton <GameSceneManager> .IsValid() && MonoBehaviourSingleton <GameSceneManager> .I.IsBackKeyEventExecutionPossible()) { if (Object.op_Implicit(mainChat) && mainChat.IsOpeningWindow()) { mainChat.OnPressBackKey(); } else { GameSection currentSection = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSection(); if (currentSection != null && currentSection.collectUI != null) { if (currentSection.useOnPressBackKey) { currentSection.OnPressBackKey(); } else { string b = "[BACK]"; if (!string.IsNullOrEmpty(currentSection.overrideBackKeyEvent)) { b = currentSection.overrideBackKeyEvent; } UIGameSceneEventSender[] componentsInChildren = currentSection.collectUI.GetComponentsInChildren <UIGameSceneEventSender>(); int num = 0; int num2 = componentsInChildren.Length; while (true) { if (num >= num2) { return; } if (componentsInChildren[num].eventName == b) { break; } num++; } componentsInChildren[num]._SendEvent(); } } } } }
public static void QuestRetire(bool is_timeout, Action <bool> call_back = null) { string empty = string.Empty; List <int> memIDs = null; if (MonoBehaviourSingleton <UserInfoManager> .IsValid()) { memIDs = MonoBehaviourSingleton <QuestManager> .I.resultUserCollection.GetUserIdList(MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id); } List <QuestCompleteModel.BattleUserLog> logs = null; if (MonoBehaviourSingleton <CoopManager> .IsValid()) { logs = MonoBehaviourSingleton <CoopManager> .I.coopStage.battleUserLog.list; } MonoBehaviourSingleton <QuestManager> .I.SendQuestRetire(is_timeout, memIDs, empty, logs, call_back); }
protected override void Awake() { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) base.Awake(); Camera val = (!MonoBehaviourSingleton <UIManager> .IsValid()) ? MonoBehaviourSingleton <AppMain> .I.mainCamera : MonoBehaviourSingleton <UIManager> .I.uiCamera; punicon.get_transform().set_position(val.get_transform().get_position()); punicon.uiCamera = val; link_info = null; InputManager.OnTouchOn = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnTouchOn, new InputManager.OnTouchDelegate(OnTouchOn)); InputManager.OnTouchOff = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnTouchOff, new InputManager.OnTouchDelegate(OnTouchOff)); InputManager.OnDrag = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnDrag, new InputManager.OnTouchDelegate(OnDrag)); InputManager.OnLongTouch = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnLongTouch, new InputManager.OnTouchDelegate(OnLongTouch)); InputManager.OnDoubleDrag = (InputManager.OnDoubleTouchDelegate)Delegate.Combine(InputManager.OnDoubleDrag, new InputManager.OnDoubleTouchDelegate(OnDoubleDrag)); }
private void OnReceivePartyInvite(Chat_Model_PartyInvite packet) { int result = 0; int.TryParse(packet.flag, out result); if (result > 0) { if (MonoBehaviourSingleton <UserInfoManager> .IsValid()) { MonoBehaviourSingleton <UserInfoManager> .I.SetPartyInviteChat(true); } } else if (MonoBehaviourSingleton <UserInfoManager> .IsValid()) { MonoBehaviourSingleton <UserInfoManager> .I.SetPartyInviteChat(false); } }
protected override void OnEnable() { //IL_001e: 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_0028: Expected O, but got Unknown base.OnEnable(); if (arrowSprite != null) { arrowTransform = arrowSprite.get_transform().get_parent(); } if (MonoBehaviourSingleton <StageObjectManager> .IsValid() && MonoBehaviourSingleton <StageObjectManager> .I.playerList != null) { myPlayer = (MonoBehaviourSingleton <StageObjectManager> .I.playerList.Find((StageObject x) => x is Self) as Self); } panel = this.GetComponent <UIPanel>(); isPlayAnimation = false; }
protected override void OnDestroy() { if (MonoBehaviourSingleton <ShopReceiver> .IsValid()) { ShopReceiver i = MonoBehaviourSingleton <ShopReceiver> .I; i.onBillingUnavailable = (Action)Delegate.Remove(i.onBillingUnavailable, new Action(onBillingUnavailable)); ShopReceiver i2 = MonoBehaviourSingleton <ShopReceiver> .I; i2.onBuyItem = (Action <string>)Delegate.Remove(i2.onBuyItem, new Action <string>(OnBuyItem)); ShopReceiver i3 = MonoBehaviourSingleton <ShopReceiver> .I; i3.onBuySpecialItem = (Action <ShopReceiver.PaymentPurchaseData>)Delegate.Remove(i3.onBuySpecialItem, new Action <ShopReceiver.PaymentPurchaseData>(OnBuyBundle)); ShopReceiver i4 = MonoBehaviourSingleton <ShopReceiver> .I; i4.onBuyMaterialItem = (Action <ShopReceiver.PaymentPurchaseData>)Delegate.Remove(i4.onBuyMaterialItem, new Action <ShopReceiver.PaymentPurchaseData>(OnBuyMaterial)); ShopReceiver i5 = MonoBehaviourSingleton <ShopReceiver> .I; i5.onGetProductDatas = (Action <StoreDataList>)Delegate.Remove(i5.onGetProductDatas, new Action <StoreDataList>(OnGetProductDatas)); } base.OnDestroy(); }
protected void PlayStampEffect(StageObject.StampInfo stamp_info, StampNode stamp_node) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: 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_0028: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002a: 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) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) Vector3 position = stamp_node._transform.get_position(); position += stamp_node._transform.get_rotation() * stamp_node.scaledeOffset; position = StageManager.FitHeight(position); string effectName = stamp_info.effectName; if (!string.IsNullOrEmpty(effectName)) { EffectManager.OneShot(effectName, position, _transform.get_rotation(), _transform.get_localScale() * stamp_info.effectScale, isSelf, delegate(Transform effect) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) SceneSettingsManager.ApplyEffect(effect.get_gameObject().GetComponent <rymFX>(), true); if (effectLayer != -1) { Utility.SetLayerWithChildren(effect, effectLayer); } }); } if (stamp_info.shakeCameraPercent > 0f && MonoBehaviourSingleton <InGameCameraManager> .IsValid()) { MonoBehaviourSingleton <InGameCameraManager> .I.SetShakeCamera(position, stamp_info.shakeCameraPercent, stamp_info.shakeCycleTime); } if (stamp_info.seID != 0) { SoundManager.PlayOneShotSE(stamp_info.seID, position); } }
public static void PlayVoice(AudioClip audio_clip, int voice_id, float volume = 1f, uint ch_id = 0, DisableNotifyMonoBehaviour master = null, Transform parent = null) { if (GameSaveData.instance.voiceOption != 2 && MonoBehaviourSingleton <SoundManager> .IsValid() && !(audio_clip == null)) { float num = volume * MonoBehaviourSingleton <SoundManager> .I.volumeVOICE; if (!(num < 0.05f)) { bool is3DSound = (!(parent == null)) ? true : false; AudioControlGroup audioControlVoice = MonoBehaviourSingleton <SoundManager> .I.GetAudioControlVoice(ch_id); if (!(audioControlVoice == null)) { audioControlVoice.CreateAudio(audio_clip, voice_id, num, false, MonoBehaviourSingleton <SoundManager> .I.mixerGroupVoice, is3DSound, master, parent, null); } } } }
public void StartCharge() { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) if (MonoBehaviourSingleton <EffectManager> .IsValid()) { m_effectChargeTrans = EffectManager.GetEffect(NAME_EFFECT_CHARGE, m_launchTrans); Transform effectChargeTrans = m_effectChargeTrans; effectChargeTrans.set_position(effectChargeTrans.get_position() + OFFSET_BEAM_CHARGE_EFFECT); } if (m_seIdCharge > 0) { SoundManager.PlayOneShotSE(m_seIdCharge, base._transform.get_position()); } }
public void OnRecvSyncPlayerStatus(int fromClientId, Coop_Model_RoomSyncPlayerStatus model) { if (QuestManager.IsValidExplore()) { CoopClient coopClient = clients.FindByClientId(fromClientId); if (model.hp <= 0 && Object.op_Implicit(coopClient)) { ExplorePlayerStatus explorePlayerStatus = MonoBehaviourSingleton <QuestManager> .I.GetExplorePlayerStatus(coopClient.userId); if (explorePlayerStatus != null && explorePlayerStatus.hp > 0 && MonoBehaviourSingleton <UIDeadAnnounce> .IsValid()) { MonoBehaviourSingleton <UIDeadAnnounce> .I.Announce(UIDeadAnnounce.ANNOUNCE_TYPE.DEAD, coopClient.GetPlayerName()); } } MonoBehaviourSingleton <QuestManager> .I.UpdateExplorePlayerStatus(coopClient, model); } }
protected override void OnQuery_TRY_ON() { selectInventoryIndex = (int)GameSection.GetEventData(); if (selectInventoryIndex < 0) { EquipItem = null; } else if (localInventoryEquipData != null) { EquipItem = (localInventoryEquipData[selectInventoryIndex].GetItemData() as EquipItemInfo); } if (MonoBehaviourSingleton <StatusStageManager> .IsValid()) { MonoBehaviourSingleton <StatusStageManager> .I.SetEquipInfo(EquipItem); } base.OnQuery_TRY_ON(); }
protected IEnumerator WaitDataTable() { foreach (string item in requireDataTable) { while (!MonoBehaviourSingleton <DataTableManager> .IsValid()) { yield return((object)null); } MonoBehaviourSingleton <DataTableManager> .I.ChangePriorityTop(item); while (MonoBehaviourSingleton <DataTableManager> .I.IsLoading(item)) { yield return((object)null); } } isLoadedRequireDataTable = true; }
public static void LoopOff(int se_id, DisableNotifyMonoBehaviour master) { if (MonoBehaviourSingleton <SoundManager> .IsValid() && master.notifyServants != null) { List <DisableNotifyMonoBehaviour> .Enumerator enumerator = master.notifyServants.GetEnumerator(); AudioObject audioObject; do { if (!enumerator.MoveNext()) { return; } audioObject = (enumerator.Current as AudioObject); }while (!(audioObject != null) || audioObject.clipId != se_id || !audioObject.GetLoopFlag()); audioObject.SetLoopFlag(false); } }
private void SetTargetAreaNPC(int npc_id) { //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) if (!(prefab_target_area == null) && MonoBehaviourSingleton <HomeManager> .IsValid() && !(MonoBehaviourSingleton <HomeManager> .I.HomePeople == null)) { HomeNPCCharacter homeNPCCharacter = MonoBehaviourSingleton <HomeManager> .I.HomePeople.GetHomeNPCCharacter(npc_id); if (!(homeNPCCharacter == null)) { t_target_area = ResourceUtility.Realizes(prefab_target_area, homeNPCCharacter.get_transform(), -1); t_target_area.set_position(homeNPCCharacter.get_transform().get_position()); } } }
public static void ShrinkOriginalNonPlayer(int player_max) { if (MonoBehaviourSingleton <StageObjectManager> .IsValid()) { int player_num = 0; MonoBehaviourSingleton <StageObjectManager> .I.playerList.ForEach(delegate(StageObject o) { if (!o.isDestroyWaitFlag) { player_num++; } }); MonoBehaviourSingleton <StageObjectManager> .I.cacheList.ForEach(delegate(StageObject o) { if (o is Player && !o.isDestroyWaitFlag) { player_num++; } }); int num = player_num - player_max; if (num > 0) { List <StageObject> destroyList = new List <StageObject>(); Action <StageObject> action = delegate(StageObject o) { if (o is NonPlayer && !o.isDestroyWaitFlag && (o.IsCoopNone() || o.IsOriginal())) { destroyList.Add(o); } }; MonoBehaviourSingleton <StageObjectManager> .I.cacheList.ForEach(action); MonoBehaviourSingleton <StageObjectManager> .I.nonplayerList.ForEach(action); int num2 = Math.Min(num, destroyList.Count); for (int i = 0; i < num2; i++) { StageObject stageObject = destroyList[i]; stageObject.DestroyObject(); } } } }
protected void JumpQuest() { if (!TutorialStep.HasFirstDeliveryCompleted()) { GameSection.StopEvent(); DispatchEvent("TUTORIAL_TO_FIELD", null); } else { PlayAudio(AUDIO.GO_TO_FIELD, 1f, false); if (isQuestEnemy) { if (!isInGameScene) { EventData[] autoEvents = new EventData[3] { new EventData("[BACK]", null), new EventData("TAB_QUEST", (uint)deliveryID), new EventData("SELECT_QUEST", targetQuestID) }; MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents); } } else { FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(targetMapID); if (fieldMapData == null || fieldMapData.jumpPortalID == 0) { Log.Error("QuestDeliveryDetail.JumpQuest() jumpPortalID is not found."); } else if (MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSceneName() != "InGameScene") { MonoBehaviourSingleton <WorldMapManager> .I.SetJumpPortalID(fieldMapData.jumpPortalID); GameSection.StopEvent(); DispatchEvent("QUEST_TO_FIELD", null); } else if (MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <FieldManager> .I.currentMapID != targetMapID) { MonoBehaviourSingleton <InGameProgress> .I.PortalNext(fieldMapData.jumpPortalID); } } } }
public void SendClanInfo(Action <bool> call_back) { Protocol.Send(GuildInfoModel.URL, delegate(GuildInfoModel ret) { bool is_success = false; if (ret.Error == Error.None) { is_success = true; if (ret.result.invitation) { MonoBehaviourSingleton <UserInfoManager> .I.SetClanInviteHome(); } guildInfos = ret.result; if (guildInfos.guildInfo == null) { call_back(is_success); PlayerPrefs.SetInt("CLAN_ID", -1); } else { SetAskUpdate(long.Parse(guildInfos.askUpdate)); if (MonoBehaviourSingleton <ChatManager> .IsValid()) { MonoBehaviourSingleton <ChatManager> .I.CreateClanChat(guildInfos.chat, MonoBehaviourSingleton <UserInfoManager> .I.userStatus.clanId, null); } UpdateGuild(guildInfos.guildInfo); if (ret.result.receivable) { MonoBehaviourSingleton <GuildManager> .I.SendDonateReceive(delegate { call_back(is_success); }); } else { call_back(is_success); } } } else { call_back(is_success); } }, string.Empty); }
private void OnQuery_FOLLOW() { int playerIndex = (int)GameSection.GetEventData(); InGameRecorder.PlayerRecord record = playerRecords[playerIndex]; if (record == null) { GameSection.StopEvent(); } else if (MonoBehaviourSingleton <FriendManager> .I.followNum >= MonoBehaviourSingleton <UserInfoManager> .I.userStatus.maxFollow) { GameSection.ChangeEvent("FOLLOW_MAX", null); } else { GameSection.StayEvent(); List <int> list = new List <int>(); list.Add(record.charaInfo.userId); MonoBehaviourSingleton <FriendManager> .I.SendFollowUser(list, delegate(Error err, List <int> follow_list) { if (err == Error.None) { GameSection.ChangeStayEvent("FOLLOW_DIALOG", new object[1] { record.charaInfo.name }); Transform root = itemsL[playerIndex]; SetButtonSprite(root, UI.BTN_FOLLOW, "ResultfollowBtnOff", true); SetButtonEnabled(root, UI.BTN_FOLLOW, false); if (MonoBehaviourSingleton <CoopApp> .IsValid()) { CoopApp.UpdateField(null); } } else if (follow_list.Count == 0) { GameSection.ChangeStayEvent("FAILED_FOLLOW", new object[1] { record.charaInfo.name }); } GameSection.ResumeEvent(err == Error.None, null); }); } }
public Quaternion GetArrowBleedLocalRotation(int show_index = 0) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) Quaternion val = Quaternion.get_identity(); if (offset != Vector3.get_zero()) { val = Quaternion.LookRotation(-offset); } val *= Quaternion.Euler(bleedOffsetRot.x, bleedOffsetRot.y, bleedOffsetRot.z); if (show_index > 0 && MonoBehaviourSingleton <InGameSettingsManager> .IsValid()) { InGameSettingsManager.Player.SpecialActionInfo.ArrowBleedOther arrowBleedOther = MonoBehaviourSingleton <InGameSettingsManager> .I.player.specialActionInfo.arrowBleedOther; if (arrowBleedOther != null) { Quaternion val2 = Quaternion.AngleAxis((float)(show_index - 1) * 120f + arrowBleedOther.axisRandomAngle * Random.get_value() - arrowBleedOther.axisRandomAngle * 0.5f, Vector3.get_forward()); Quaternion val3 = Quaternion.Euler(arrowBleedOther.openFixAngle + arrowBleedOther.openRandomAngle * Random.get_value(), 0f, 0f); val = val * val2 * val3; } } return(val); }
public override void OnRoomLeaved() { Logd("OnRoomLeaved. {0}/{1}", FieldManager.IsValidInGameNoQuest(), MonoBehaviourSingleton <InGameProgress> .IsValid()); base.isLeave = true; if (InGameManager.IsReentry()) { if (MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.FieldReentry(); } } else if (!base.isBattleRetire && IsStageStart() && !MonoBehaviourSingleton <CoopManager> .I.coopRoom.isOfflinePlay && !MonoBehaviourSingleton <CoopManager> .I.coopStage.isQuestClose) { string text = StringTable.Get(STRING_CATEGORY.IN_GAME, 100u); UIInGamePopupDialog.PushOpen(text, false, 1.8f); MonoBehaviourSingleton <GoWrapManager> .I.trackBattleDisconnect(); } }
public void SetEnableDialog(bool enable) { enableDialog = enable; if (MonoBehaviourSingleton <InGameManager> .IsValid()) { List <Desc> dialogOpenInfoList = MonoBehaviourSingleton <InGameManager> .I.dialogOpenInfoList; if (enable) { openInfoList.AddRange(dialogOpenInfoList.GetRange(0, dialogOpenInfoList.Count)); dialogOpenInfoList.Clear(); } else { dialogOpenInfoList.AddRange(openInfoList.GetRange(0, openInfoList.Count)); openInfoList.Clear(); } } }
private void Awake() { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) if (MonoBehaviourSingleton <GameSceneManager> .IsValid() && MonoBehaviourSingleton <GameSceneManager> .I.isInitialized) { Camera component = this.GetComponent <Camera>(); if (component.get_targetTexture() != null) { component.get_targetTexture().DiscardContents(); component.set_targetTexture(null); } } else { Init(0, 0); } }
public void OnRecvMemberMoveArena(Lounge_Model_MemberArena model) { if (this.loungeMemberStatus != null) { LoungeMemberStatus loungeMemberStatus = this.loungeMemberStatus[model.cid]; LoungeMemberStatus.MEMBER_STATUS status = loungeMemberStatus.GetStatus(); loungeMemberStatus.ToArena(model.aid); if (loungeMemberStatus != null) { OnChangeMemberStatus.SafeInvoke(loungeMemberStatus); if (MonoBehaviourSingleton <LoungeNetworkManager> .IsValid()) { MonoBehaviourSingleton <LoungeNetworkManager> .I.MoveLoungeNotification(status, loungeMemberStatus); } } AFKCheck(); } }
public void OnRecvMemberMoveQuest(Lounge_Model_MemberQuest model) { if (this.loungeMemberStatus != null) { LoungeMemberStatus loungeMemberStatus = this.loungeMemberStatus[model.cid]; LoungeMemberStatus.MEMBER_STATUS status = loungeMemberStatus.GetStatus(); if (loungeMemberStatus != null) { loungeMemberStatus.ToQuest(model.pid.ToString(), model.qid, model.h); OnChangeMemberStatus.SafeInvoke(loungeMemberStatus); if (MonoBehaviourSingleton <LoungeNetworkManager> .IsValid()) { MonoBehaviourSingleton <LoungeNetworkManager> .I.MoveLoungeNotification(status, loungeMemberStatus); } } AFKCheck(); } }
public void OnRecvMemberMoveLounge(int userId) { if (this.loungeMemberStatus != null) { LoungeMemberStatus loungeMemberStatus = this.loungeMemberStatus[userId]; LoungeMemberStatus.MEMBER_STATUS status = loungeMemberStatus.GetStatus(); if (loungeMemberStatus != null) { loungeMemberStatus.ToLounge(); OnChangeMemberStatus.SafeInvoke(loungeMemberStatus); if (MonoBehaviourSingleton <LoungeNetworkManager> .IsValid()) { MonoBehaviourSingleton <LoungeNetworkManager> .I.MoveLoungeNotification(status, loungeMemberStatus); } } AFKCheck(); } }
public override void Initialize() { //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) Utility.CreateGameObjectAndComponent("StoryDirector", MonoBehaviourSingleton <AppMain> .I._transform, -1); if (MonoBehaviourSingleton <StageManager> .IsValid()) { if (MonoBehaviourSingleton <StageManager> .I.stageObject != null) { MonoBehaviourSingleton <StageManager> .I.stageObject.get_gameObject().SetActive(false); } if (MonoBehaviourSingleton <StageManager> .I.skyObject != null) { MonoBehaviourSingleton <StageManager> .I.skyObject.get_gameObject().SetActive(false); } } base.Initialize(); }