Exemplo n.º 1
0
    private IEnumerator IWaitForSpell()
    {
        controller.isBusy = true;
        yield return(new WaitUntil(() => animator.GetCurrentAnimatorStateInfo(0).IsTag("Spell")));

        controller.BeBusy(animator.GetCurrentAnimatorStateInfo(0).length
                          / animator.GetCurrentAnimatorStateInfo(0).speed);
    }
Exemplo n.º 2
0
 public void ActiveSuperPower()
 {
     animator.SetTrigger("SuperPowerTrigger");
     characterController.BeBusy(timeSuperPower);
 }