void AccionF() { bool ActionDone = false; if (currentState == BattleStates.ENEMYC) { // aqui va lo que quiera que haga el moco if (player is ReySlime) { ReySlime moco = (ReySlime)player; if (!player.estados.Contains("habmetralleta")) { moco.mocotralleta(all); ActionDone = true; } } if (ActionDone) { BlockButtons(false); // player.restaCooldowns(); StartCoroutine(waiter()); } for (int i = 0; i < all.Length; i++) { all[i].clicked = false; } } }
void AccionC() { bool ActionDone = false; if (currentState == BattleStates.ENEMYC) { if (player is ReySlime) { ReySlime moco = (ReySlime)player; if (!player.estados.Contains("habregeneracion")) { moco.regeneracion(); ActionDone = true; } } if (ActionDone) { BlockButtons(false); // player.restaCooldowns(); StartCoroutine(waiter()); } } for (int i = 0; i < all.Length; i++) { all[i].clicked = false; } }
void AccionB() // Lluvia Acida (5 adversarii) { bool ActionDone = false; if (currentState == BattleStates.ENEMYC) { if (player is ReySlime) { ReySlime Moco = (ReySlime)player; if (!player.estados.Contains("hablluvia")) { Moco.lluviaAcida(all); ActionDone = true; } } if (ActionDone) { BlockButtons(false); // player.restaCooldowns(); StartCoroutine(waiter()); } } for (int i = 0; i < all.Length; i++) { all[i].clicked = false; } }
public override void muerto() { ReySlime enemy = FindObjectOfType <ReySlime>(); base.muerto(); enemy.devorar(); }
// clicked seleccionado public void AccionA() { Boolean ActionDone = false; if (currentState == BattleStates.ENEMYC) { npc Target = null; for (int i = 0; i < all.Length; i++) { if (all[i].clicked) { Target = all[i]; } } if (Target != null) { if (tank.getDead()) { // aqui va lo que quiera que haga el moco if (player is ReySlime) { ReySlime moco = (ReySlime)player; moco.disparoMoco(Target); ActionDone = true; } // all[Target].cambiaHp(10000, 'f'); } else { if (Target is tankBase) { // aqui va lo que quiera que haga el moco if (player is ReySlime) { ReySlime moco = (ReySlime)player; moco.disparoMoco(Target); ActionDone = true; } } } if (ActionDone) { BlockButtons(false); // player.restaCooldowns(); StartCoroutine(waiter()); } } for (int i = 0; i < all.Length; i++) { all[i].clicked = false; } } }