Пример #1
0
        public static RandomMoveAction GetSSAction(GameObject gameObject, ISSActionCallback _callback)
        {
            RandomMoveAction action = ScriptableObject.CreateInstance <RandomMoveAction>();

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

            return(action);
        }
Пример #2
0
        public void RandomMovePatrol(GameObject gameobj)
        {
            SSAction action = RandomMoveAction.GetSSAction(gameobj, null);

            addAction(action);
        }