c# how to use coroutine in other script code example
Example: how to start a coroutine in c#
void Start()
{
StartCoroutine(Test());
}
IEnumerator Test()
{
yield return new WaitForSeconds[2];
}
void Start()
{
StartCoroutine(Test());
}
IEnumerator Test()
{
yield return new WaitForSeconds[2];
}