public override void SetValid(bool IsValid) { base.SetValid(IsValid); EzGuiSetting.SetValidEzGui(m_imgGameBoard, IsValid); if (m_scriptScore) { m_scriptScore.SetValid(IsValid); } EzGuiSetting.SetValidEzGui(m_btnAdvice, IsValid); SetValid_Pause(IsValid); SetValid_ItemButton(IsValid); SetItemSelect(IsValid); if (IsValid) { Main.inst.GetHudManager().GetHudUserInfoManager().ClosePopup(); } }
public override void SetValid(bool IsValid) { base.SetValid(IsValid); if (m_scriptScore) { m_scriptScore.SetValid(IsValid); } EzGuiSetting.SetValidEzGui(m_imgScoreBoard, IsValid); EzGuiSetting.SetValidEzGui(m_imgBackground, IsValid); EzGuiSetting.SetValidEzGui(m_btnGoReady, IsValid); int PlatformType = DefineBaseManager.inst.GetPlatformType(); if (PlatformType == (int)PLATFORM_TYPE.PLATFORM_ANDROID || PlatformType == (int)PLATFORM_TYPE.PLATFORM_IPHONE) { EzGuiSetting.SetValidEzGui(m_btnGoMain, IsValid); } else { EzGuiSetting.SetValidEzGui(m_btnGoMain, false); } }