public SSAction ApplyMoveToAction(GameObject obj, Vector3 target, float speed, ActionCallback callback)
    {
        MoveToAction act = obj.AddComponent <MoveToAction>();

        act.setting(target, speed, callback);
        return(act);
    }
Example #2
0
        // ApplyMoveToAction
        public U3dAction ApplyMoveToAction(GameObject obj, Vector3 target, float speed, IU3dActionCompleted completed)
        {
            MoveToAction ac = obj.AddComponent <MoveToAction>();

            ac.setting(target, speed, completed);
            return(ac);
        }