예제 #1
0
        public static CCCharacterMove GetSSAction(Vector3 target)
        {
            CCCharacterMove action = ScriptableObject.CreateInstance <CCCharacterMove>();

            action.dest   = target;
            action.middle = target;
            return(action);
        }
        public void moveCharacter(GameObject obj, Vector3 dest)
        {
            CCCharacterMove characterMove = CCCharacterMove.GetSSAction(dest);

            this.RunAction(obj, characterMove, this);
        }