public void Input1(Button actionChoice)//Action Panel { HeroChoice.Attacker = HeroesToManage[0].name; HeroChoice.AttackerGameObject = HeroesToManage[0]; HeroChoice.Type = "Hero"; if (actionChoice.name == "Attack Button") { SkillPanel.SetActive(false); EnemySelectPanel.SetActive(true); HeroChoice.choosenAttack = SkillList.NormalAttack(); } else if (actionChoice.name == "Skills Button") { SkillPanel.SetActive(true); EnemySelectPanel.SetActive(false); } else if (actionChoice.name == "Item Button") { SkillPanel.SetActive(false); EnemySelectPanel.SetActive(false); } else if (actionChoice.name == "Defend Button") { SkillPanel.SetActive(false); EnemySelectPanel.SetActive(false); } }
public static Enemy Skilla() { Enemy enemy = new Enemy(); enemy.setMaxHealth(100); enemy.setCurrentHealth(100); enemy.setCurrentMP(20); enemy.setMaxMP(20); enemy.setExperieneceDrop(100); enemy.setMoneyDrop(50); enemy.setName("Skilla"); enemy.addSkillToList(SkillList.NormalAttack()); enemy.addSkillToList(SkillList.Infel()); return(enemy); }