$10,000
Relevant Code:
[SerializeField] GameObject pref_bill;
GameObject[] bills;
Vector2 bounds = new Vector2(16, 9);
// Start is called before the first frame update
void Start()
{
bills = new GameObject[10000];
for (int x = 0; x < bills.GetLength(0); x++)
{
bills[x] = Instantiate(pref_bill,
new Vector2(Random.Range(0, bounds.x), //random position
Random.Range(0, bounds.y)),
Quaternion.Euler(0, 0, Random.Range(-15, 15))); //slightly randomize rotation
//slightly randomize color
bills[x].GetComponent<Shapes.Rectangle>().Color = new Color(.11f, .5f + Random.Range(-0.1f, 0.1f), .13f);
}
}
Status | Released |
Category | Other |
Platforms | HTML5 |
Author | Nick Rasmussen |
Made with | Unity |