private IEnumerator DoEnable(bool isFirstCard) { Master.Invisible = true; UIBattle.ShowBossTime(true, TotalTime); //血条 and boss背景处理 switch (Phase) { case EBossCardPhase.One: Master.SetHpHudPointActive(true); Master.SetHpHudActive(true); break; case EBossCardPhase.Two: UIBossBg.Show(Master.Deploy.BossDraw); UIBattle.ShowBossCard(CardName); Master.SetHpHudPointActive(false); break; case EBossCardPhase.Single: Master.SetHpHudActive(true); break; } yield return(new WaitForSeconds(isFirstCard ? 0.5f : 1.5f)); Master.Invisible = false; yield return(new WaitForSeconds(0.8f)); Master.ShowCircleRaoDong(true); Inited = true; }
public static void Show(string drawingPath) { if (Instance != null) { Instance.Close(); Instance = null; } UiManager.Show <UIBossBg>(view => { view.Refresh(drawingPath); }); }
public void OnDisable() { if (Phase == EBossCardPhase.One) { Master.SetHpHudPointActive(false); } else { Master.SetHpHudActive(false); } Master.ShowCircleRaoDong(false); UIBossBg.FadeOut(); UIBattle.ShowBossTime(false); UIBattle.HideBossCard(); }
protected override void OnDestroy() { base.OnDestroy(); Instance = null; }
protected override void OnLoadFinish() { base.OnLoadFinish(); _bind = GetComponent <UIBossBgComponent>(); Instance = this; }