예제 #1
0
    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();
    }
예제 #2
0
    public override void Cast(GameObject target)
    {
        base.Cast(target);

        PlayerC.ParalyzeAllEnemies(duration);
    }