Пример #1
0
        public static RotationTo Create(float d, Vector3 endRotation)
        {
            var ret = new RotationTo();

            if (ret.InitWithDuration(d, endRotation))
            {
                return(ret);
            }
            return(null);
        }
Пример #2
0
        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);
        }