Beispiel #1
0
    public static void Run(float seconds, bool priority = false)
    {
        if (currentPriority && !priority)
        {
            return;
        }

        Interrupt();
        currentPriority       = priority;
        Time.timeScale        = 0.01f;
        playerAnimator.speed  = 0;
        currentHitstopRoutine = instance.StartCoroutine(EndHitstop(seconds));
    }
Beispiel #2
0
 public static void Run(float seconds)
 {
     instance.StartCoroutine(DoHitstop(seconds));
 }
Beispiel #3
0
 public static void Run(float seconds)
 {
     Interrupt();
     Time.timeScale        = 0.01f;
     currentHitstopRoutine = instance.StartCoroutine(EndHitstop(seconds));
 }
Beispiel #4
0
 public static void Run(float seconds, GameObject enemyParent)
 {
     instance.StartCoroutine(DoHitstop(seconds, enemyParent));
 }