Rnadom.Range(min, max)隨機產生一個數值

views

原始文件

越來在一定範圍內產生隨機數值

應用:隨機生出殭屍來

spawnRate = Random.Range(3.0f, 10.0f);

print(spawnRate); //檢查用

This entry was posted in Unity and tagged by Mr.M. Bookmark the permalink.


Leave a Reply

Your email address will not be published. Required fields are marked *