Esempio n. 1
0
    IEnumerator Coroutine_InvisibilityStart(BoostInfo boost, float target)
    {
        do
        {
            boost.CurrentPower = Math.Min(boost.CurrentPower + Time.deltaTime * 0.75f, target);

            Owner.UpdateEffectAmount(boost.CurrentPower);

            yield return(new WaitForEndOfFrame());
        } while (target > boost.CurrentPower);
    }