public virtual void Init() { this.m_nUnique = 0; this.m_eType = GameGuideType.DEFAULT; this.m_eCheck = GameGuideCheck.NONE; this.m_nPriority = 0; this.m_nMinLevel = 0; this.m_nMaxLevel = 0; this.m_strBaloonTextKey = string.Empty; this.m_strTalkKey = string.Empty; this.m_strButtonKey = string.Empty; this.m_nDelayTime = 0f; this.m_objData = null; this.m_nCheckTime = 0f; }
public void Set(GameGuideInfo gameGuideInfo) { this.m_nUnique = gameGuideInfo.m_nUnique; this.m_eType = gameGuideInfo.m_eType; this.m_eCheck = gameGuideInfo.m_eCheck; this.m_nPriority = gameGuideInfo.m_nPriority; this.m_nMinLevel = gameGuideInfo.m_nMinLevel; this.m_nMaxLevel = gameGuideInfo.m_nMaxLevel; this.m_strBaloonTextKey = gameGuideInfo.m_strBaloonTextKey; this.m_strTalkKey = gameGuideInfo.m_strTalkKey; this.m_strButtonKey = gameGuideInfo.m_strButtonKey; this.m_nDelayTime = gameGuideInfo.m_nDelayTime; this.m_objData = gameGuideInfo.m_objData; this.m_nCheckTime = gameGuideInfo.m_nCheckTime; }
public void Update(GameGuideCheck checkType) { this.fpsCheckTime = Time.realtimeSinceStartup; this.totalCheckTime = Time.realtimeSinceStartup; foreach (GameGuideInfo current in this.m_GameGuide) { if (current.m_eCheck == checkType) { if (this.m_kCurrentGameGuideInfo == null || this.m_kCurrentGameGuideInfo.m_eType != current.m_eType) { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { break; } if (current.GetMinLevel() <= myCharInfo.GetLevel() && current.GetMaxLevel() >= myCharInfo.GetLevel() && current.CheckGameGuide()) { bool flag = false; foreach (GameGuideInfo current2 in this.m_kReserveGuide) { if (current2.m_eType == current.m_eType) { flag = true; break; } } if (!flag) { this.m_kReserveGuide.Enqueue(current); } } } } } this.checkTime = Time.realtimeSinceStartup; }