hello, i am currently doing some scripting with transformations and i would like my script to hang or wait for x seconds and then continue.
this is the current script that i ahve and it works as a co routine but i would like to make it so it holds the script here while its doing it.
private IEnumerator MoveChevron(){
for(int i = 0; i < 5; i++) {
chevron7.transform.Translate(-Vector3.up * 0.015f);
yield return new WaitForSeconds(0.01f);
}
yield return new WaitForSeconds(10);
for(int i = 0; i < ; i++) {
chevron7.transform.Translate(Vector3.up * 0.015f);
yield return new WaitForSeconds(0.01f);
}
}
i may just be in the mind set of the old engine that i used which used Lua s its language which had a very nice wait() which did exactly want im trying to do now just without coroutines ![]()