Help Finding the loop for me

So what I would like to do is (Do something, wait, Do something, wait) and loop but I don’t know which loop can do that

use IEnumerator :wink:

1 Like

As Terraya hints above, you want a Coroutine, which is an object returning an IEnumerator.

Work through a few different tutorials for how to set them up and handle them. They’re pretty powerful.

2 Likes

hmm, Will definitely take a look, Thx!

 IEnumerator HideStars()
    {
        yield return new WaitForSeconds(300);
        StarsParticleSystem.Play;
        yield return new WaitForSeconds(300);
        StarsParticleSystem.Stop;
    }

It says line 14 and 16 have a syntax error

Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

sorry 4 and 6

()

1 Like

Where?

ohhhh

I got it, Thx!!