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 void OnDisable() { if (Phase == EBossCardPhase.One) { Master.SetHpHudPointActive(false); } else { Master.SetHpHudActive(false); } Master.ShowCircleRaoDong(false); UIBossBg.FadeOut(); UIBattle.ShowBossTime(false); UIBattle.HideBossCard(); }