Example #1
0
 public void CloseTipsPanel()
 {
     if (heroResurrectionTips != null && heroResurrectionTips.gameObject != null)
     {
         Destroy(heroResurrectionTips.gameObject);
         heroResurrectionTips = null;
     }
 }
Example #2
0
        public void ShowHeroResurrectionTips(object obj)
        {
            SoundManager.Instance.PlaySoundEffect("Sound_Button_Default");
            //CloseDeathBtn();
            if (heroResurrectionTips == null)
            {
                heroResurrectionTips = CreatObjectToNGUI.InstantiateObj(ResurrectionPanelPrefab, transform).GetComponent <HeroResurrectionTips>();
                heroResurrectionTips.ShowMyself(this);


                if (GameDataManager.Instance.DataIsNull(DataType.CountDownUI))
                {
                    int CurrentTime = EctypeManager.Instance.GetCurrentEctypeData().ReviveTime;
                    heroResurrectionTips.ResetCutDownTime(CurrentTime);
                }
                else                //ε¦‚ζžœι‡θΏž
                {
                    ResetCountDownTimeHandle(GameDataManager.Instance.GetData(DataType.CountDownUI));
                }
            }
        }