// ---------------------------------------------------------------- // Each frame update // ---------------------------------------------------------------- public void Update() { if (inputEnabled && inputDelay.CanAct()) { Vector3 mouseWorldPos = Camera.main.ScreenToWorldPoint(Input.mousePosition); if (Input.GetKey(KeyCode.Q) && Input.GetMouseButtonUp(0)) { // if (AttackAction()) { Debug.Log("Attack action"); playerCombat.OneTileAttack(Input.mousePosition); } else if (Input.GetMouseButtonUp(0)) { // if (LeftClick()) { Debug.Log("Move action"); playerMovement.AttemptMove(mouseWorldPos); } } }