예제 #1
0
        public static void StopMoveUIAnchored(this Transform trans)
        {
            StartMoveUIAnchored move = trans.GetComponent <StartMoveUIAnchored>();

            if (!move)
            {
                move = trans.gameObject.AddComponent <StartMoveUIAnchored>();
            }
            move.StopMove();
        }
예제 #2
0
        public static void DoMoveUIAnchored(this Transform trans, Vector2 toPos, float time, CTween.EaseType method, CTween.EndHandler endEvent, bool xEnable, bool yEnable)
        {
            StartMoveUIAnchored move = trans.GetComponent <StartMoveUIAnchored>();

            if (!move)
            {
                move = trans.gameObject.AddComponent <StartMoveUIAnchored>();
            }
            move.Move(toPos, time, method, endEvent, xEnable, yEnable);
        }