private void Update() { if (touchingPlayer && !isBuilded && Input.GetKeyDown(KeyCode.E)) { BuildBaracks(); } else if (touchingPlayer && isBuilded && Input.GetKeyDown(KeyCode.E)) { score.AddArmy(1); score.coins -= 2; score.coinText.text = score.coins.ToString(); } }