Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 1067
Rep : 0
Join date : 2015-09-21
View user profile

StartCoroutine

on Sun Nov 01, 2015 4:54 pm
Hello everyone,

I am currently studying a script on how to spawn an object. I've come across this the statement StartCoroutine(). I am unsure how this statement works. I'm hoping you guys can help me figure it out. Thank you! Very Happy
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 54
Points : 1936
Rep : -7
Join date : 2014-01-28
View user profile

StartCorourtine

on Wed Dec 09, 2015 8:20 pm
Hey

it's actually rather simple, it's just like a delay or what you want called mainly locally.

it goes like this

Code:


void Start()
{
    StartCoroutine(0.2f);
}

IEnumerator NAME(float TIME)
{
    yield return new waitForSeconds(TIME);
    print("Called My Logic Register at http://vertualmyth.com/ for more deals :D");
}
Back to top
Permissions in this forum:
You cannot reply to topics in this forum