その先にあるもの…

coroutine 인자 본문

프로그래밍/Unity

coroutine 인자

specialJ 2014. 8. 27. 16:54

void func()

{

object[param = new object[2]1, 2.0f };

StartCoroutine("ParamCoroutine", param);

}


IEnumerator ParamCoroutine( obejct[] param )
{
int i = (int)param[0];
float j = (float)param[1];
yield return ;
}


void StopCoroutine()

{

StopCoroutine("ParamCoroutine");

}

Comments