Пример #1
0
        static public RotateBy Create2(float duration_, float angle_)
        {
            RotateBy action = new RotateBy();

            action.m_use2d = true;
            action.InitWithRotation(duration_, new Vector3(0, 0, angle_));

            return(action);
        }
Пример #2
0
        //-------∽-★-∽------∽-★-∽--------∽-★-∽static∽-★-∽--------∽-★-∽------∽-★-∽--------//


        static public RotateBy Create(float duration_, Vector3 to_)
        {
            RotateBy action = new RotateBy();

            action.m_use2d = false;
            action.InitWithRotation(duration_, to_);

            return(action);
        }