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); }
public void RandomMovePatrol(GameObject gameobj) { SSAction action = RandomMoveAction.GetSSAction(gameobj, null); addAction(action); }