public void StatusSpecialAttackChoose() { currentAction = "SAStatus"; lists.buttons[0].GetComponentInChildren <Text>().text = attacker.character.spec.statusName1; lists.buttons[0].GetComponent <Button>().onClick.RemoveAllListeners(); SpecialDelegate one = attacker.character.spec.StatusSpecialAttack1; if (attacker.revive1 == true) { lists.buttons[0].GetComponent <Button>().onClick.AddListener(() => StoreSSA(one, true, 4)); } else if (attacker.revive1 == false) { lists.buttons[0].GetComponent <Button>().onClick.AddListener(() => StoreSSA(one, false, 4)); } if (attacker.character.spec.statusName2 != "") { lists.buttons[1].GetComponentInChildren <Text>().text = attacker.character.spec.statusName2; lists.buttons[1].GetComponent <Button>().interactable = true; lists.buttons[1].GetComponent <Button>().onClick.RemoveAllListeners(); SpecialDelegate two = attacker.character.spec.StatusSpecialAttack2; if (attacker.revive2 == true) { lists.buttons[1].GetComponent <Button>().onClick.AddListener(() => StoreSSA(two, true, 5)); } else if (attacker.revive2 == false) { lists.buttons[1].GetComponent <Button>().onClick.AddListener(() => StoreSSA(two, false, 5)); } } else { lists.buttons[1].GetComponentInChildren <Text>().text = ""; lists.buttons[1].GetComponent <Button>().interactable = false; } if (attacker.character.spec.statusName3 != "") { lists.buttons[2].GetComponentInChildren <Text>().text = attacker.character.spec.statusName3; lists.buttons[2].GetComponent <Button>().interactable = true; lists.buttons[2].GetComponent <Button>().onClick.RemoveAllListeners(); SpecialDelegate three = attacker.character.spec.StatusSpecialAttack3; if (attacker.revive3 == true) { lists.buttons[2].GetComponent <Button>().onClick.AddListener(() => StoreSSA(three, true, 6)); } else if (attacker.revive3 == false) { lists.buttons[2].GetComponent <Button>().onClick.AddListener(() => StoreSSA(three, false, 6)); } } else { lists.buttons[2].GetComponentInChildren <Text>().text = ""; lists.buttons[2].GetComponent <Button>().interactable = false; } }
/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { SpecialDelegate y = delegate { var err = new Exception(message: "message: \{nameof(page)}"); new IHTMLPre { "err \{err.Message} \{err.StackTrace}"
void StoreSSA(SpecialDelegate chosenSA, bool revive, int num) { Debug.Log("poo"); SA = chosenSA; SAnum = num; if (revive == true) { partyChoose(true); } else if (revive == false) { partyChoose(false); } }
public void specialAttackChoose() { currentAction = "SAPhysical"; lists.buttons[0].GetComponentInChildren <Text>().text = attacker.character.spec.physicalName1; lists.buttons[0].GetComponent <Button>().onClick.RemoveAllListeners(); SpecialDelegate one = attacker.character.spec.SpecialAttack1; lists.buttons[0].GetComponent <Button>().onClick.AddListener(() => StoreSA(one, 1)); if (attacker.character.spec.physicalName2 != "") { lists.buttons[1].GetComponentInChildren <Text>().text = attacker.character.spec.physicalName2; lists.buttons[1].GetComponent <Button>().interactable = true; lists.buttons[1].GetComponent <Button>().onClick.RemoveAllListeners(); SpecialDelegate two = attacker.character.spec.SpecialAttack2; lists.buttons[1].GetComponent <Button>().onClick.AddListener(() => StoreSA(two, 2)); } else { lists.buttons[1].GetComponentInChildren <Text>().text = ""; lists.buttons[1].GetComponent <Button>().interactable = false; } if (attacker.character.spec.physicalName3 != "") { lists.buttons[2].GetComponentInChildren <Text>().text = attacker.character.spec.physicalName3; lists.buttons[2].GetComponent <Button>().interactable = true; lists.buttons[2].GetComponent <Button>().onClick.RemoveAllListeners(); SpecialDelegate three = attacker.character.spec.SpecialAttack3; lists.buttons[2].GetComponent <Button>().onClick.AddListener(() => StoreSA(three, 3)); } else { lists.buttons[2].GetComponentInChildren <Text>().text = ""; lists.buttons[2].GetComponent <Button>().interactable = false; } }
void StoreSA(SpecialDelegate chosenSA, int num) { SA = chosenSA; SAnum = num; enemyChoose(true); }