private bool processNonMoveToAction(string text) { bool processed = false; if (this.produceGoldTextRef.text.Equals(text)) { this.selectedAction = ActionType.ProduceGold; processed = true; } else if (!processed && this.produceUnitsTextRef.text.Equals(text)) { this.selectedAction = ActionType.ProduceSoldiers; processed = true; } else if (!processed && this.upgradeStructureTextRef.text.Equals(text)) { if (checkIfCanUpgradeStructure(this.currentlySelectedStructure)) { this.selectedAction = ActionType.UpgradeStructure; processed = true; } else { toastRef.displayMessage("Brak złota na ulepszenie", false); } } return(processed); }