Esempio n. 1
0
        public static DirectMoveAction GetSSAction(GameObject gameObject, GameObject _target, ISSActionCallback _callback)
        {
            DirectMoveAction action = ScriptableObject.CreateInstance <DirectMoveAction>();

            action.target     = _target;
            action.gameobject = gameObject;
            action.transform  = gameObject.transform;
            action.callback   = _callback;

            return(action);
        }
        public void DirectMove(GameObject gameobj1, GameObject gameobj2)
        {
            SSAction action = DirectMoveAction.GetSSAction(gameobj1, gameobj2, this);

            addAction(action);
        }