16 [Tooltip(
"use the local rotation - overrides the UseLocalTransform value of RotateToValue")]
17 public bool UseLocalRotation =
false;
23 mRotation = GetComponent<RotateToValue>();
37 Vector3 item = Array[Index];
39 Quaternion rotation = Quaternion.identity;
40 rotation.eulerAngles = item;
43 if (mRotation != null)
53 TargetObject.transform.localRotation = rotation;
57 TargetObject.transform.rotation = rotation;