void CheckCanLevelUp() { if (selectedFactory) { levelUpButton.GetComponent <Button>().interactable = selectedFactory.CanLevelUp(); } }
void CheckCanLevelUp() { if (selectedFactory) { levelUpButton.GetComponent <Button>().interactable = selectedFactory.CanLevelUp(); } }