// Update is called once per frame void Update() { moveable.MoveLeft(Input.GetKey(inputManager.left)); moveable.MoveRight(Input.GetKey(inputManager.right)); moveable.MoveUp(Input.GetKey(inputManager.up)); moveable.MoveDown(Input.GetKey(inputManager.down)); }
// Event Triggers //Movement start triggers void MoveUpTrigger() { moveAble.MoveUp(Input.GetKey(inputManager.up)); }