public void ValkyrieSelected() { EnableSelectionButtons(false); if (magicButtonSelected) { if (valkyrieController.IsGuardUp()) { valkyrieController.StartCoroutine(valkyrieController.OnGuardUp()); magicButtonSelected = false; EnableAllButtons(true); } else { valkyrieController.StartCoroutine(valkyrieController.OnMagic(2)); stateText.text = "GUARD UP"; } } else if (potionButtonSelected) { if (valkyrieController.isHealthFull()) { valkyrieController.StartCoroutine(valkyrieController.OnHealthFull()); potionButtonSelected = false; EnableAllButtons(true); } else { valkyrieController.StartCoroutine(valkyrieController.OnPotion(3250)); } } else if (magicButtonSelected) { if (valkyrieController.isMagicFull()) { valkyrieController.StartCoroutine(valkyrieController.OnMagicFull()); manaButtonSelected = false; EnableAllButtons(true); } else { valkyrieController.StartCoroutine(valkyrieController.OnMana(1000)); } } }