火暗工作室吧 关注:9贴子:243
  • 0回复贴,共1

Unity在多线程中使用随机函数

只看楼主收藏回复

Unity在多线程中使用随机函数
private void RandomThread(){
System.Random tempRandom=new System.Random();
int tempI=0;
while(tempI<=10){
Debug.Log(tempRandom.Next(0,5));
tempI+=1;
}
}


IP属地:广东1楼2020-08-15 16:02回复