public override void FixedUpdate() { base.FixedUpdate(); if (blissButtonEffect != null) { bool isGiftHallAvailable = TopRightMenuView.GetInstance().IsGiftHallAvailable(); if (isGiftHallAvailable) { if (!blissButtonEffect.activeSelf) { blissButtonEffect.SetActive(true); } } else { if (blissButtonEffect.activeSelf) { blissButtonEffect.SetActive(false); } } } }
public object OnInitSceneUI(params object[] objs) { //--------- menu begin-------------------------- ButtonBarView.GetInstance().viewType = ViewType.Menu; //ShortcutView.GetInstance(); //old view CMDView.GetInstance().viewType = ViewType.Menu; HitPanelView.GetInstance().viewType = ViewType.Menu; HeroMenuView.GetInstance().viewType = ViewType.Menu; //HeadView.GetInstance();//old view MinMapView.GetInstance().viewType = ViewType.Menu; if (PlayerManager.GetInstance().MajorPlayer.level >= 14) { MissionFollowListView.GetInstance().viewType = ViewType.Menu; } else { MissionFollowView.GetInstance().viewType = ViewType.Menu; } TopRightMenuView.GetInstance().viewType = ViewType.Menu; PveProcessView.GetInstance().viewType = ViewType.Menu; //-----------menu end-------------------- //-----------window begin----------------- PveView.GetInstance(); PveQuitView.GetInstance(); PveAutoFight.GetInstance(); //-----------window end------------------- //----------Tip begin----------- PveFailView.GetInstance(); ReliveView.GetInstance(); //----------Tip end------------- return(null); }