Пример #1
0
    public IEnumerator RegenDash()
    {
        yield return(new WaitForSeconds(0.2f));

        //Debug.Log("nixpassiert");

        while (Player.instancePlayer.currDash < Player.instancePlayer.maxDash)
        {
            Player.instancePlayer.currDash += Player.instancePlayer.maxDash / 3;
            instance.UpdateDashAmulette();
            yield return(instance.regenTickDash);
        }
        instance.regenDash = null;
    }