public void setUp(Vector3 offset, LogicChip graph, InputActions input, RawImage image) { //sets up the camera controller this.graph = graph; this.offset = offset; this.cam = this.GetComponent <Camera>(); this.input = input; this.rawImage = image; //up input.addInput(new KeyCombination(KeyCode.W, KeyStatus.Down), () => { this.vertical += 1; }); input.addInput(new KeyCombination(KeyCode.W, KeyStatus.Held), () => { this.vertical += 1; }); //down input.addInput(new KeyCombination(KeyCode.S, KeyStatus.Down), () => { this.vertical -= 1; }); input.addInput(new KeyCombination(KeyCode.S, KeyStatus.Held), () => { this.vertical -= 1; }); //left input.addInput(new KeyCombination(KeyCode.D, KeyStatus.Down), () => { this.horizontal += 1; }); input.addInput(new KeyCombination(KeyCode.D, KeyStatus.Held), () => { this.horizontal += 1; }); //right input.addInput(new KeyCombination(KeyCode.A, KeyStatus.Down), () => { this.horizontal -= 1; }); input.addInput(new KeyCombination(KeyCode.A, KeyStatus.Held), () => { this.horizontal -= 1; }); input.addInput(new KeyCombination(KeyCode.C, KeyStatus.Rest), () => { this.cameraZoom = input.CurrentFrameData.ScrollWheel; }); }