Exemplo n.º 1
0
 /// <summary>
 /// Sets the transform world space position z component.
 /// </summary>
 /// <param name="value">Value of z component.</param>
 public static void SetLocalPositionZ(this Transform transform, float value)
 {
     transform.localPosition = Vector3Utils.SetZ(transform.localPosition, value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the transform world space position y component.
 /// </summary>
 /// <param name="value">Value of y component.</param>
 public static void SetPositionY(this Transform transform, float value)
 {
     transform.position = Vector3Utils.SetY(transform.position, value);
 }