public static void StopMoveUIAnchored(this Transform trans) { StartMoveUIAnchored move = trans.GetComponent <StartMoveUIAnchored>(); if (!move) { move = trans.gameObject.AddComponent <StartMoveUIAnchored>(); } move.StopMove(); }
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); }