public void RandomPose(SIGRandom random) { foreach (var rotator in GetComponentsInChildren <Rotator>()) { rotator.RandomRotation(random); } }
public void RandomRotation(SIGRandom random) { if (!hasCache) { Cache(); } Reset(); transform.localEulerAngles += new Vector3( random.Range(limitsLow.x, limitsHigh.x), random.Range(limitsLow.y, limitsHigh.y), random.Range(limitsLow.z, limitsHigh.z) ); }