summaryrefslogtreecommitdiff
path: root/RandomizeRotation.cs
blob: 0186111e60db3d0b439350f5fce870ef0e5ce577 (plain)
1
2
3
4
5
6
7
8
9
10
11
using UnityEngine;

public class RandomizeRotation : MonoBehaviour
{
	public float spread;

	private void Start()
	{
		base.transform.Rotate(Random.insideUnitSphere.normalized, Random.Range(0f - spread, spread));
	}
}