Ejemplo n.º 1
0
    public void Update()
    {
        if (IsPawnAction || !gameManager.gameTurnManager.IsPlayerTurn())
        {
            return;
        }
        if (Input.GetMouseButtonDown(0) && !EventSystem.current.IsPointerOverGameObject())
        {
            UpdateSelect();
        }
        else if (Input.GetMouseButtonDown(2) && !EventSystem.current.IsPointerOverGameObject())
        {
            UpdateFocus();
        }

        if (Input.GetKeyDown(KeyCode.K))
        {
            playerPanel.On99Resources();
        }
    }