RealityStop / Bolt.Addons.Community

A community-driven project for extending Unity Bolt
MIT License
251 stars 34 forks source link

Update RandomNumbers.cs #10

Closed eka closed 3 years ago

eka commented 5 years ago

Changes for Random Numbers to work with AotList out of the box. Changes for Random Numbers to be consistent in min/max when using Integers.

RealityStop commented 5 years ago

I now have a version that looks like this: image with a graph inspector of: image

You can see that here: https://github.com/RealityStop/Bolt.Addons.Community/commit/bb9bb2fa0728e5d5ae8ad69761b95619a6115af7

Whatcha think? Will that meet your needs? I haven't tested it fully yet, as I ran out of time, but it passes the eyeball test. I'll run it through some tests later.

eka commented 5 years ago

Even the bool for AOTList could be removed adding compile time conditional statements like #if UNITY_ANDROID etc...