public static RotationTo Create(float d, Vector3 endRotation) { var ret = new RotationTo(); if (ret.InitWithDuration(d, endRotation)) { return(ret); } return(null); }
public static RotationTo Create(float d, float z) { var ret = new RotationTo(); if (ret.InitWithDuration(d, new Vector3() { z = z })) { ret.m_isZ = true; return(ret); } return(null); }