// Update is called once per frame void Update() { if (KSInput.GetPlatformType() == KSInput.PlatformType.PC) { if (Input.GetKey(KeyCode.LeftArrow)) { movementSystem.Move(Vector3.left); } if (Input.GetKey(KeyCode.RightArrow)) { movementSystem.Move(Vector3.right); } if (Input.GetKey(KeyCode.DownArrow)) { movementSystem.Move(Vector3.down); } if (Input.GetKey(KeyCode.UpArrow)) { movementSystem.Move(Vector3.up); } } if (KSInput.HasInput()) { KSInput.SetStartPosition(); movementSystem.Move(KSInput.GetDeltaPosition()); } attackSystem.Shoot(); }