【3Dゲームエンジン】Unity質問スレッド20 [転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0818名前は開発中のものです。
2015/11/11(水) 00:19:29.95ID:dWVd6jumIEnumerator GenerateIns(float time,int count,GameObject obj){
float interval = (float)count/time;
float pastime=Time.deltaTime;
while(count<0){
if(pastime>interval){
Instantiate(obj);
count--;
pastime-=interval;
}
if(pastime>interval)contine;
pastime+=Time.deltaTime;
yield return null;
}
■ このスレッドは過去ログ倉庫に格納されています