Exemple #1
0
 public void RandomPose(SIGRandom random)
 {
     foreach (var rotator in GetComponentsInChildren <Rotator>())
     {
         rotator.RandomRotation(random);
     }
 }
Exemple #2
0
    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)
            );
    }