Exemple #1
0
    public static void PlayDashSfx(double start, double end)
    {
        if (endDashRoutine != null)
        {
            inst.StopCoroutine(endDashRoutine);
        }
        playingDashSfx = true;

        inst.dashSfx.PlayScheduled(start);
        inst.dashSfx.SetScheduledEndTime(end);

        endDashRoutine = inst.StartCoroutine(inst.WaitForEndDashSfx(end));
    }