IEnumerator ToggleBetween() { while (true) { fade.StartFade(); scaling.StartScaling(); yield return(new WaitForSeconds(delayBetweenToggle)); fade.ReverseFade(); scaling.ReverseScaling(); yield return(new WaitForSeconds(delayBetweenToggle)); } }
void Start() { fadeSprite.StartFade(); scaleGameObject.StartScaling(); }