IEnumerator UseWhistle_CR() { // TODO if (PlayerC.IsJinxed) { PlayerC.DeactivateJinx(); } PlayerC.ParalyzeAllEnemies(WHISTLE_MELODY_DURATION); PlayerC.ActivateParalyze(WHISTLE_MELODY_DURATION); Music.Instance.Stop(); SoundFx.Instance.PlayOneShot(SoundFx.Instance.whistle); yield return(new WaitForSeconds(WHISTLE_MELODY_DURATION)); Music.Instance.PlayAppropriateMusic(); if (HandleDigdogger()) { yield break; } if (HandleDungeon7Entrance()) { yield break; } Warp(); }
public override void Cast(GameObject target) { base.Cast(target); PlayerC.ParalyzeAllEnemies(duration); }