// Update is called once per frame void Update() { //make mock states that you can set with different key stokes and then call the action in the ai //make the ai in the function a global variable gameState mock; if (Input.GetKeyDown(KeyCode.V)) { mock = new gameState(0); testAI.actAI(mock); } else if (Input.GetKeyDown(KeyCode.B)) { mock = new gameState(513); testAI.actAI(mock); } }