IEnumerator Coroutine_InvisibilityStop(BoostInfo boost) { do { boost.CurrentPower = Math.Max(boost.CurrentPower - Time.deltaTime * 0.75f, 0.0f); Owner.UpdateEffectAmount(boost.CurrentPower); yield return(new WaitForEndOfFrame()); } while (boost.CurrentPower > 0.0f); Owner.SetInvisibleOff(); SetBoostEffect(true); }