public override void Update() { if (this.m_rootGameObject == null || this.m_goldenEgg == null || this.m_whiiteEgg == null) { return; } if (this.m_eEggType != NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE.eNEWGUILD_GOLDENEGG_TYPE_NONE) { this.m_itemDlgShowTickTime = Environment.TickCount + 7400; this.m_CloseTickTime = Environment.TickCount + 8500; this.m_rootGameObject.SetActive(true); this.m_goldenEgg.SetActive(this.m_eEggType == NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE.eNEWGUILD_GOLDENEGG_TYPE_GOLD); this.m_whiiteEgg.SetActive(this.m_eEggType == NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE.eNEWGUILD_GOLDENEGG_TYPE_WHITE); this.Show(); if (this.m_eEggType == NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE.eNEWGUILD_GOLDENEGG_TYPE_GOLD) { TsAudioManager.Container.RequestAudioClip("UI_SFX", "EGG", "GOLD", new PostProcPerItem(this.OnDownloaded_Sound)); } else if (this.m_eEggType == NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE.eNEWGUILD_GOLDENEGG_TYPE_WHITE) { TsAudioManager.Container.RequestAudioClip("UI_SFX", "EGG", "NORMAL", new PostProcPerItem(this.OnDownloaded_Sound)); } this.m_eEggType = NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE.eNEWGUILD_GOLDENEGG_TYPE_NONE; } if (this.m_itemDlgShowTickTime != 0 && Environment.TickCount >= this.m_itemDlgShowTickTime) { this.ShowReward(); this.m_itemDlgShowTickTime = 0; } if (this.m_CloseTickTime != 0 && Environment.TickCount >= this.m_CloseTickTime) { this.Close(); } }
public void SetEggType(byte EggType) { this.m_eEggType = (NewGuildDefine.eNEWGUILD_GOLDENEGG_TYPE)EggType; }