summaryrefslogtreecommitdiff
path: root/RandomizeRotation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RandomizeRotation.cs')
-rw-r--r--RandomizeRotation.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/RandomizeRotation.cs b/RandomizeRotation.cs
new file mode 100644
index 0000000..0186111
--- /dev/null
+++ b/RandomizeRotation.cs
@@ -0,0 +1,11 @@
+using UnityEngine;
+
+public class RandomizeRotation : MonoBehaviour
+{
+ public float spread;
+
+ private void Start()
+ {
+ base.transform.Rotate(Random.insideUnitSphere.normalized, Random.Range(0f - spread, spread));
+ }
+}