Пример #1
0
 public virtual void BlockInputs()
 {
     //Debug.Log("meh");
     if (blockRoutine != null)
     {
         StopCoroutine(blockRoutine);
         blockRoutine = null;
     }
     blockRoutine = StartCoroutine(CharacterUtility.BlockInputs(this, true, true, true, 0.3f));
 }
Пример #2
0
 public virtual void BlockInputs(float duration, bool horizontal, bool vertical)
 {
     //Debug.Log("meh");
     if (blockRoutine != null)
     {
         StopCoroutine(blockRoutine);
         blockRoutine = null;
     }
     blockRoutine = StartCoroutine(CharacterUtility.BlockInputs(this, horizontal, vertical, true, duration));
 }