private void onOpenLobby(CUIEvent uiEvent) { this.m_LobbyForm.OpenForm(); if (Singleton <CLoginSystem> .GetInstance().m_fLoginBeginTime > 0f) { List <KeyValuePair <string, string> > events = new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("WorldID", MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID.ToString()), new KeyValuePair <string, string>("status", "1") }; float num = Time.time - Singleton <CLoginSystem> .GetInstance().m_fLoginBeginTime; events.Add(new KeyValuePair <string, string>("totaltime", num.ToString())); events.Add(new KeyValuePair <string, string>("errorCode", "0")); Singleton <ApolloHelper> .GetInstance().ApolloRepoertEvent("Service_Loginsvr", events, true); Singleton <CLoginSystem> .GetInstance().m_fLoginBeginTime = 0f; } }
private void OnClickMiShu(CUIEvent uiEvent) { CUIEvent event2 = new CUIEvent { m_eventID = enUIEventID.Task_OpenForm }; event2.m_eventParams.tag = 1; if (Singleton <CTaskSys> .instance.model.IsShowMainTaskTab_RedDotCount()) { event2.m_eventParams.tag = 0; } Singleton <CUIEventManager> .instance.DispatchUIEvent(event2); SendUIClickToServer(enUIClickReprotID.rp_MishuBtn); MonoSingleton <NewbieGuideManager> .GetInstance().CheckTriggerTime(NewbieGuideTriggerTimeType.onEnterMishu, new uint[0]); Singleton <CMiShuSystem> .GetInstance().HideNewFlagForMishuEntry(); }
protected override void DealConnectSucc() { this.reconPolicy.StopPolicy(); Singleton <ReconnectIpSelect> .get_instance().SetRelaySuccessUrl(this.initParam.ip); MonoSingleton <Reconnection> .GetInstance().OnConnectSuccess(); List <KeyValuePair <string, string> > list = new List <KeyValuePair <string, string> >(); list.Add(new KeyValuePair <string, string>("g_version", CVersion.GetAppVersion())); list.Add(new KeyValuePair <string, string>("WorldID", MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID.ToString())); list.Add(new KeyValuePair <string, string>("platform", Singleton <ApolloHelper> .GetInstance().CurPlatform.ToString())); list.Add(new KeyValuePair <string, string>("openid", "NULL")); list.Add(new KeyValuePair <string, string>("status", "0")); list.Add(new KeyValuePair <string, string>("type", "challenge")); list.Add(new KeyValuePair <string, string>("errorCode", "SUCC")); Singleton <ApolloHelper> .GetInstance().ApolloRepoertEvent("Service_SvrConnectFail", list, true); }
private uint onTryReconnect(uint nCount, uint nMax) { try { MonoSingleton <Reconnection> .GetInstance().ShowReconnectMsgAlert((int)nCount, (int)nMax); } catch (Exception exception) { object[] inParameters = new object[] { exception.Message, exception.StackTrace }; DebugHelper.Assert(false, "Exception In GameConnector Try Reconnect, {0} {1}", inParameters); } Singleton <ApolloHelper> .GetInstance().ApolloRepoertEvent("GameConnector.onTryReconnect", null, true); NetworkModule instance = Singleton <NetworkModule> .GetInstance(); instance.m_GameReconnetCount++; return(nCount); }
public RecipeParam GetRarityUpRecipe(int rarity) { if (this.recipes == null) { return((RecipeParam)null); } if (rarity < 0 || rarity >= RarityParam.MAX_RARITY || rarity >= (int)this.raremax) { return((RecipeParam)null); } string recipe = this.recipes[rarity]; if (string.IsNullOrEmpty(recipe)) { return((RecipeParam)null); } return(MonoSingleton <GameManager> .GetInstanceDirect().MasterParam.GetRecipeParam(recipe)); }
public override void Process(AGE.Action _action, Track _track) { PoolObjHandle <ActorRoot> actorHandle = _action.GetActorHandle(this.targetId); if (actorHandle != 0) { GameObject inActorMesh = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(this.prefabName, false, SceneObjType.ActionRes, Vector3.zero); if (inActorMesh != null) { Transform transform = inActorMesh.transform; transform.SetParent(actorHandle.handle.gameObject.transform); transform.localPosition = Vector3.zero; transform.localRotation = Quaternion.identity; actorHandle.handle.SetActorMesh(inActorMesh); } } }
private void On_Guild_Guild_Select(CUIEvent uiEvent) { int selectedIndex = uiEvent.m_srcWidget.GetComponent <CUIListScript>().GetSelectedIndex(); GuildInfo guildInfoByIndex = this.m_Model.GetGuildInfoByIndex(selectedIndex); if (guildInfoByIndex != null) { this.m_form.GetWidget(0x22).GetComponent <CUIHttpImageScript>().SetImageUrl(CGuildHelper.GetHeadUrl(guildInfoByIndex.stChairman.stBriefInfo.szHeadUrl)); MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(this.m_form.GetWidget(0x29).GetComponent <Image>(), CGuildHelper.GetNobeLevel(guildInfoByIndex.stChairman.stBriefInfo.uulUid, guildInfoByIndex.stChairman.stBriefInfo.stVip.level), false); MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(this.m_form.GetWidget(40).GetComponent <Image>(), CGuildHelper.GetNobeHeadIconId(guildInfoByIndex.stChairman.stBriefInfo.uulUid, guildInfoByIndex.stChairman.stBriefInfo.stVip.headIconId)); this.m_form.GetWidget(10).GetComponent <Text>().text = guildInfoByIndex.stBriefInfo.sBulletin; this.m_form.GetWidget(11).GetComponent <Text>().text = guildInfoByIndex.stChairman.stBriefInfo.sName; string[] args = new string[] { guildInfoByIndex.stChairman.stBriefInfo.dwLevel.ToString() }; this.m_form.GetWidget(0x27).GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Common_Level_Format", args); } }
private void UpdateNobeHeadIdx() { int dwHeadIconId = (int)MonoSingleton <NobeSys> .GetInstance().m_vipInfo.stGameVipClient.dwHeadIconId; CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FORM_PATH); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (((form != null) && form.gameObject.activeSelf) && (masterRoleInfo != null)) { Image component = form.GetWidget(3).GetComponent <Image>(); if (component != null) { MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component, dwHeadIconId); } this.RefreshRankList(); } }
public override void OnActivate(int pinID) { if (pinID != 0) { return; } string iname = FlowNode_Variable.Get("CONFIRM_SELECT_AWARD"); if (MonoSingleton <GameManager> .GetInstanceDirect().Player.SelectedAward != iname) { this.ExecRequest((WebAPI) new ReqUpdateSelectAward(iname, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); ((Behaviour)this).set_enabled(true); } else { this.Success(); } }
public void StartKingOfKillerEffect() { if (base.actorPtr != 0) { this.EndKingOfKillerEffect(); Quaternion rot = Quaternion.LookRotation(Vector3.right); Vector3 position = base.actor.gameObject.transform.position; position.y += 3.9f; GameObject obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD("Prefab_Skill_Effects/Systems_Effects/huangguan_buff_01", true, SceneObjType.ActionRes, position, rot); if (obj2 != null) { obj2.transform.SetParent(base.actor.gameObject.transform); obj2.SetActive(true); } this.m_kingOfKillerEff = obj2; } }
public static string FinishLevel() { if (!Singleton <GameStateCtrl> .instance.isBattleState) { return("不在副本里面你通过个毛线??"); } if (Singleton <BattleLogic> .GetInstance().GetCurLvelContext().IsMobaModeWithOutGuide()) { return("单人游戏才能用"); } Singleton <PVEReviveHeros> .instance.ClearTimeOutTimer(); MonoSingleton <NewbieGuideManager> .GetInstance().StopCurrentGuide(); Singleton <LobbyLogic> .instance.ReqSingleGameFinish(true, true); return(CheatCommandBase.Done); }
private void LoadBannerImage() { if (this.m_AllLoadImageInfo == null) { return; } int num = this.m_AllLoadImageInfo.Length; for (int i = 0; i < num; i++) { string text = this.m_AllLoadImageInfo[i].resImgInfo.szImgUrl; text = string.Format("{0}{1}", BannerImageSys.GlobalLoadPath, text); base.StartCoroutine(MonoSingleton <IDIPSys> .GetInstance().DownloadImageByTag(text, i, delegate(Texture2D text2, int imageIDX) { this.SetElemntTexture(imageIDX, text2); }, MonoSingleton <BannerImageSys> .GetInstance().GlobalBannerImagePath, 0)); } }
public void ToggleShowFrameSpareChart() { this._showChart = !this._showChart; if (this._showChart) { MonoSingleton <RealTimeChart> .get_instance().set_isVisible(true); Track track = MonoSingleton <RealTimeChart> .get_instance().AddTrack("FramePackageSpare", Color.yellow, true, 0f, 5f); track.isVisiable = true; } else { MonoSingleton <RealTimeChart> .get_instance().set_isVisible(false); MonoSingleton <RealTimeChart> .get_instance().RemoveTrack("FramePackageSpare"); } }
public uint PlayHeroActSound(string soundName) { if (!GameSettings.EnableSound || MonoSingleton <Reconnection> .GetInstance().isProcessingRelayRecover) { return(0u); } if (string.IsNullOrEmpty(soundName)) { return(0u); } Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer(); if (hostPlayer.Captain && hostPlayer.Captain.get_handle().ActorControl != null && !hostPlayer.Captain.get_handle().ActorControl.IsDeadState) { return(this.PostEvent(soundName, hostPlayer.Captain.get_handle().gameObject)); } return(this.PostEvent(soundName, null)); }
public void ShowIOSGuestNotice() { ApolloNoticeInfo noticeInfo = new ApolloNoticeInfo(); ApolloNoticeData item = new ApolloNoticeData { MsgType = APOLLO_NOTICETYPE.APO_NOTICETYPE_ALERT, ContentType = APOLLO_NOTICE_CONTENTTYPE.APO_SCONTENTTYPE_TEXT, MsgTitle = "游客模式特别说明", MsgContent = "敬爱的玩家,您正在使用游客模式进行游戏,游客模式下的游戏数据(包含付费数据)会在删除游戏、更换设备后清空。为了保障您的虚拟财产安全,以及让您获得更完善的游戏体验,我们建议您使用QQ/微信登录进行游戏!\n\n《王者荣耀》运营团队" }; noticeInfo.DataList.Add(item); for (int i = 0; i < noticeInfo.DataList.Count; i++) { ApolloNoticeData data2 = noticeInfo.DataList[i]; Debug.Log(string.Concat(new object[] { "Guest noticesysy onopenform ", data2.ToString(), "msgtitle = ", data2.MsgTitle, " content ", data2.MsgType, " pic ", data2.MsgUrl, " ", data2.ContentType, " content url = ", data2.ContentUrl })); } MonoSingleton <NoticeSys> .GetInstance().OnOpenForm(noticeInfo, NoticeSys.NOTICE_STATE.LOGIN_Before); }
protected void ShowPveExp() { CUIFormScript form = Singleton <CUIManager> .GetInstance().OpenForm(PVESettleSys.PATH_ITEM, false, true); PVESettleView.SetRewardFormData(form, this.m_SettleData); if (this.m_SettleData != null) { uint iLevelID = (uint)this.m_SettleData.stGameInfo.iLevelID; uint bGameResult = (uint)this.m_SettleData.stGameInfo.bGameResult; MonoSingleton <NewbieGuideManager> .GetInstance().CheckTriggerTime(NewbieGuideTriggerTimeType.battleFin, new uint[] { iLevelID, bGameResult, 1u, 1u }); } }
public void ConnectServerWithTdirDefault(int index) { this.isLoginingByDefault = true; IPAddrInfo info = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.addrs[index]; IPAddrInfo info2 = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.addrs[index]; ApolloConfig.loginUrl = string.Format("tcp://{0}:{1}", info.ip, info2.port); IPAddrInfo info3 = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.addrs[index]; ApolloConfig.loginOnlyIpOrUrl = info3.ip; IPAddrInfo info4 = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.addrs[index]; ApolloConfig.loginOnlyVPort = ushort.Parse(info4.port); ApolloConfig.ISPType = 1; this.ConnectServer(); Singleton <BeaconHelper> .GetInstance().Event_CommonReport("Event_LoginMsgSend"); }
public static RankingQuestParam FindRankingQuestParam(string targetQuestID, int scheduleID, RankingQuestType type) { RankingQuestParam rankingQuestParam = (RankingQuestParam)null; GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect(); if (UnityEngine.Object.op_Equality((UnityEngine.Object)instanceDirect, (UnityEngine.Object)null) || instanceDirect.RankingQuestParams == null) { return(rankingQuestParam); } return(instanceDirect.RankingQuestParams.Find((Predicate <RankingQuestParam>)(param => { if (param.schedule_id == scheduleID && param.type == type) { return param.iname == targetQuestID; } return false; }))); }
private void OnIDIPNoticeUpdate() { if (this._campaignForm != null) { GameObject iDIPRedObj = this._campaignForm.GetIDIPRedObj(); if (iDIPRedObj) { if (MonoSingleton <IDIPSys> .GetInstance().HaveUpdateList) { CUICommonSystem.AddRedDot(iDIPRedObj, enRedDotPos.enTopRight, 0, 0, 0); } else if (iDIPRedObj != null) { CUICommonSystem.DelRedDot(iDIPRedObj); } } } }
public bool CheckEnableBuffTarget(Unit target) { if (this.param == null) { return(false); } bool flag = true; if (this.param.sex != ESex.Unknown) { flag &= this.param.sex == target.UnitParam.sex; } if (this.param.elem != 0) { int num = 1 << (int)(target.Element - 1 & (EElement)31); flag &= (this.param.elem & num) == num; } if (!string.IsNullOrEmpty(this.param.job) && target.Job != null) { flag &= this.param.job == target.Job.Param.origin; } if (!string.IsNullOrEmpty(this.param.buki) && target.Job != null) { flag &= this.param.job == target.Job.Param.buki; } if (!string.IsNullOrEmpty(this.param.birth)) { flag &= this.param.birth == (string)target.UnitParam.birth; } if (!string.IsNullOrEmpty(this.param.un_group)) { UnitGroupParam unitGroup = MonoSingleton <GameManager> .GetInstanceDirect().MasterParam.GetUnitGroup(this.param.un_group); if (unitGroup != null) { flag &= unitGroup.IsInGroup(target.UnitParam.iname); } } if (this.param.custom_targets != null && this.param.cond == ESkillCondition.CardSkill) { flag &= this.CheckCustomTarget(target); } return(flag); }
public void ApplyIntimacyEffect() { if (this.m_bPlayed) { return; } Player player = Singleton <GamePlayerCenter> .get_instance().GetPlayer(this.actorPtr.get_handle().TheActorMeta.PlayerId); if (player != null && player.IntimacyData != null) { string text = string.Empty; if (player.IntimacyData.state == 1) { text = "Prefab_Skill_Effects/tongyong_effects/tongyong_hurt/born_back_reborn/chusheng_JY_01"; } else if (player.IntimacyData.state == 2) { text = "Prefab_Skill_Effects/tongyong_effects/tongyong_hurt/born_back_reborn/chusheng_LR_01"; } if (!string.IsNullOrEmpty(text)) { Vector3 position = this.actor.myTransform.position; GameObject pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(text, true, SceneObjType.ActionRes, position); if (pooledGameObjLOD != null) { this.m_bPlayed = true; pooledGameObjLOD.transform.SetParent(this.actor.myTransform); pooledGameObjLOD.SetActive(true); Singleton <CGameObjectPool> .GetInstance().RecycleGameObjectDelay(pooledGameObjLOD, 7000, null); ParticleSystem[] componentsInChildren = pooledGameObjLOD.GetComponentsInChildren <ParticleSystem>(); for (int i = 0; i < componentsInChildren.Length; i++) { ParticleSystem particleSystem = componentsInChildren[i]; if (particleSystem != null) { particleSystem.Play(true); } } } } } }
private void UpdateLearningAbilities(bool bRarityUp = false) { if (!this.IsValid() || this.mArtifactParam == null || this.mArtifactParam.abil_inames == null) { return; } if (this.mLearningAbilities == null) { this.mLearningAbilities = new List <AbilityData>(this.mArtifactParam.abil_inames.Length); } GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect(); for (int index = 0; index < this.mArtifactParam.abil_inames.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type ArtifactData.\u003CUpdateLearningAbilities\u003Ec__AnonStorey1E8 abilitiesCAnonStorey1E8 = new ArtifactData.\u003CUpdateLearningAbilities\u003Ec__AnonStorey1E8(); if ((int)this.mLv >= this.mArtifactParam.abil_levels[index] && (int)this.mRarity >= this.mArtifactParam.abil_rareties[index]) { // ISSUE: reference to a compiler-generated field abilitiesCAnonStorey1E8.param = instanceDirect.GetAbilityParam(this.mArtifactParam.abil_inames[index]); // ISSUE: reference to a compiler-generated field if (abilitiesCAnonStorey1E8.param != null) { // ISSUE: reference to a compiler-generated method AbilityData abilityData1 = this.mLearningAbilities.Find(new Predicate <AbilityData>(abilitiesCAnonStorey1E8.\u003C\u003Em__1A4)); if (abilityData1 == null) { AbilityData abilityData2 = new AbilityData(); // ISSUE: reference to a compiler-generated field abilityData2.Setup((UnitData)null, 0L, abilitiesCAnonStorey1E8.param.iname, (int)this.mRarity); abilityData2.IsNoneCategory = true; abilityData2.IsHideList = this.mArtifactParam.abil_shows[index] == 0; this.mLearningAbilities.Add(abilityData2); } else if (bRarityUp) { // ISSUE: reference to a compiler-generated field abilityData1.Setup((UnitData)null, 0L, abilitiesCAnonStorey1E8.param.iname, (int)this.mRarity); } } } } }
public void ShareInviteFriend(string openId, string title, string desc, string extInfo) { Singleton <ApolloHelper> .GetInstance().m_bShareQQBox = false; if (!MonoSingleton <ShareSys> .GetInstance().IsInstallPlatform()) { return; } Texture2D texture2D = Resources.Load("Share/120", typeof(Texture2D)) as Texture2D; if (texture2D == null) { DebugHelper.Assert(false, "Texture2D Share/120 == null"); return; } byte[] array = texture2D.EncodeToPNG(); if (array != null) { int num = array.Length; } IApolloSnsService apolloSnsService = IApollo.Instance.GetService(1) as IApolloSnsService; if (apolloSnsService == null) { DebugHelper.Assert(false, "IApollo.Instance.GetService(ApolloServiceType.Sns) == null"); return; } MonoSingleton <ShareSys> .instance.OnShareCallBack(); if (Singleton <ApolloHelper> .GetInstance().CurPlatform == ApolloPlatform.QQ) { ApolloAccountInfo accountInfo = this.GetAccountInfo(false); if (accountInfo != null) { string targetUrl = "http://gamecenter.qq.com/gcjump?appid=1104466820&pf=invite&from=androidqq&plat=qq&originuin=" + accountInfo.OpenId + "&ADTAG=gameobj.msg_invite"; string imgUrl = "http://image.smoba.qq.com/yywj/share_pic/120.png"; apolloSnsService.SendToQQGameFriend(1, openId, title, desc, targetUrl, imgUrl, title, "MSG_INVITE", extInfo); } } else { apolloSnsService.SendToWXGameFriend(openId, title, desc, "9Wste6_dDgZtoVmC6CQTh0jj29kGEp0jrVSYrGWvtZLvSTDN9fUb-_sNjacaGITt", "messageExt", "MSG_INVITE", extInfo); } }
private void OnLockTarget(ref LockTargetEventParam _param) { Vector3 position = Vector3.zero; PoolObjHandle <ActorRoot> actor = Singleton <GameObjMgr> .GetInstance().GetActor(_param.lockTargetID); if (actor && this.lockTargetPrefab != null && !ActorHelper.IsHostActor(ref actor)) { this.targetObj = actor; this.ShowPrefab(this.lockTargetPrefab); if (actor.get_handle().CharInfo != null) { this.SetPrefabScaler(this.lockTargetPrefab, actor.get_handle().CharInfo.iCollisionSize.x); } else { this.SetPrefabScaler(this.lockTargetPrefab, 400); } position = actor.get_handle().myTransform.position; position.y += 0.2f; this.lockTargetTransform.position = position; this.lockTargetTransform.SetParent(actor.get_handle().myTransform); this.lockTargetTransform.localRotation = Quaternion.Euler(90f, 0f, 0f); if (this.lockHeroPrefab != null) { if (actor.get_handle().TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero) { float num = 0f; if (actor.get_handle().CharInfo != null) { num = (float)actor.get_handle().CharInfo.iBulletHeight / 1000f; } this.ShowPrefab(this.lockHeroPrefab); position.y += num; this.lockHeroTransform.position = position; this.lockHeroTransform.SetParent(actor.get_handle().myTransform); } else { this.HidePrefab(this.lockHeroPrefab); MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.lockHeroPrefab, SceneObjType.ActionRes); } } } }
private void RefreshAcntInfo() { CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(UNION_RANK_PATH); if (form != null) { CSDT_RANKING_LIST_ITEM_INFO actRankInfo = this.GetActRankInfo(this.m_CurSelRankType); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); GameObject widget = form.GetWidget(1); RankingItemHelper component = widget.GetComponent <RankingItemHelper>(); uint rankNumber = 0; if ((actRankInfo != null) && (masterRoleInfo != null)) { widget.CustomSetActive(true); string name = masterRoleInfo.Name; uint level = masterRoleInfo.Level; rankNumber = actRankInfo.dwRankNo; uint dwPerfectCnt = 0; if (rankNumber == 0) { dwPerfectCnt = CUnionBattleEntrySystem.GetRewardMatchStateByMapId(this.m_CurSelMapId).dwPerfectCnt; } else { dwPerfectCnt = actRankInfo.dwRankScore; } widget.transform.FindChild("Value").gameObject.CustomSetActive(true); widget.transform.FindChild("ValueType").gameObject.CustomSetActive(true); SetGameObjChildText(widget, "Value", dwPerfectCnt.ToString(CultureInfo.InvariantCulture)); SetGameObjChildText(widget, "NameGroup/PlayerName", masterRoleInfo.Name); SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", level.ToString(CultureInfo.InvariantCulture))); } RankNobSet(rankNumber, component); MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>()); CUICommonSystem.SetHostHeadItemCell(widget.transform.FindChild("HeadItemCell").gameObject); MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Wechat, true, false); MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.QQ, true, false); MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Guest, true, false); } }
public override void OnSuccess(WWWResult www) { if (Network.IsError) { if (Network.ErrCode == Network.EErrCode.RmNoFriend) { this.OnBack(); } else { this.OnRetry(); } } else { WebAPI.JSON_BodyResponse <Json_PlayerDataAll> jsonObject = JSONParser.parseJSONObject <WebAPI.JSON_BodyResponse <Json_PlayerDataAll> >(www.text); DebugUtility.Assert(jsonObject != null, "res == null"); if (jsonObject.body == null) { this.OnRetry(); } else { try { MonoSingleton <GameManager> .Instance.Deserialize(jsonObject.body.player); MonoSingleton <GameManager> .Instance.Deserialize(jsonObject.body.friends, FriendStates.Friend); } catch (Exception ex) { DebugUtility.LogException(ex); this.OnRetry(); return; } MonoSingleton <GameManager> .GetInstanceDirect().RequestUpdateBadges(GameManager.BadgeTypes.DailyMission); Network.RemoveAPI(); this.ActivateOutputLinks(20); GameParameter.UpdateValuesOfType(GameParameter.ParameterTypes.PLAYER_FRIENDNUM); ((Behaviour)this).set_enabled(false); } } }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if ((masterRoleInfo != null) && Singleton <LobbyLogic> .GetInstance().isLogin) { CheatCmdRef.stDyeNewbieBit = new CSDT_CHEAT_DYE_NEWBIE_BIT(); CheatCmdRef.stDyeNewbieBit.bOpenOrClose = 1; CheatCmdRef.stDyeNewbieBit.bIsAll = 0; CheatCmdRef.stDyeNewbieBit.dwApntBit = 0; MonoSingleton <NewbieGuideManager> .GetInstance().ForceCompleteNewbieGuideAll(true); MonoSingleton <NewbieGuideManager> .GetInstance().ForceSetWeakGuideCompleteAll(false); masterRoleInfo.SyncNewbieAchieveToSvr(true); return(CheatCommandBase.Done); } return("undone"); }
public void PlayHunHurtEft() { if (!base.actor.ActorControl.IsDeadState) { float y = base.actor.CharInfo.iBulletHeight * 0.001f; Vector3 pos = base.actor.gameObject.transform.localToWorldMatrix.MultiplyPoint(new Vector3(0f, y, 0f)); Quaternion rot = Quaternion.Euler(-90f, 0f, 0f); GameObject obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(s_heroHunHurtPath, true, SceneObjType.ActionRes, pos, rot); if ((obj2 != null) && (obj2.GetComponent <ParticleSystem>() != null)) { obj2.GetComponent <ParticleSystem>().Play(true); if (obj2.GetComponent <ParticleLifeHelper>() == null) { ParticleLifeHelper helper = obj2.AddComponent <ParticleLifeHelper>(); } } } }
public void PlaySuckSoulEft(PoolObjHandle <ActorRoot> src) { if ((src != 0) && ((ActorHelper.IsCaptainActor(ref this.actorPtr) && base.actor.Visible) && base.actor.InCamera)) { float z = src.handle.CharInfo.iBulletHeight * 0.001f; Vector3 pos = src.handle.gameObject.transform.localToWorldMatrix.MultiplyPoint(new Vector3(0f, 0f, z)); Quaternion rot = Quaternion.Euler(-90f, 0f, 0f); GameObject obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(s_heroSuckEftPath, true, SceneObjType.ActionRes, pos, rot); if (obj2 != null) { DuraEftPlayParam item = new DuraEftPlayParam { EftObj = obj2, RemainMSec = s_suckSoulMSec }; this.soulSuckObjList.Add(item); } } }
public void PlayDyingGoldEffect(PoolObjHandle <ActorRoot> inActor) { if (inActor != 0) { float num = inActor.handle.CharInfo.iBulletHeight * 0.001f; Vector3 pos = inActor.handle.gameObject.transform.localToWorldMatrix.MultiplyPoint(new Vector3(0f, num + 1f, 0f)); Quaternion rot = Quaternion.Euler(-90f, 0f, 0f); GameObject obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD("Prefab_Skill_Effects/Systems_Effects/GoldenCoin_UI_01", true, SceneObjType.ActionRes, pos, rot); if ((obj2 != null) && (obj2.GetComponent <ParticleSystem>() != null)) { obj2.GetComponent <ParticleSystem>().Play(true); if (obj2.GetComponent <ParticleLifeHelper>() == null) { ParticleLifeHelper helper = obj2.AddComponent <ParticleLifeHelper>(); } } } }