public void OnContractButtonPressed() { if (PlayerManager.instance.shouldConsiderContract) { ConfirmationPopup.afterConfirmationDelegate = DelegateAfterConfirmation_ContractPanel; StartCoroutine(confirmationPopup.CallConfirmationPanel("ConfirmationPanel_ContractText", 1, PlayerManager.instance.XP)); } }
public void TurnNewBuilding(int index) { indexToChangeBuilding = index; if (GameManager.instance.numberOfBuilding != index) { if (PlayerManager.instance.HasBoughtBuildingMap(index - 1)) { ConfirmationPopup.afterConfirmationDelegate = DelegateAfterConfirmation_ChangeBuilding; StartCoroutine(confirmationPopup.CallConfirmationPanel("ConfirmationPanel_ChangeBuilding")); } } else { HidePopup(); BlockyImage(); } }