Advertisement
Guest User

Untitled

a guest
May 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. public Text pName;
  2. public Text eName;
  3. public Text pAttack;
  4. public Text eAttack;
  5.  
  6.  
  7. // Use this for initialization
  8. void Start()
  9. {
  10. player = PokemonFactory.CreateRandom();
  11. enemy = PokemonFactory.CreateRandom();
  12. pName.text = "";
  13. eName.text = "";
  14. pAttack.text = "";
  15. eAttack.text = "";
  16. }
  17.  
  18.  
  19. pAttack.text = player.name + " uses " + player.moves[0].name + ". " + enemy.name + " loses " + pkmandamage + " HP";
  20.  
  21.  
  22. eAttack.text = enemy.name + " uses " + enemy.moves[0].name + ". " + player.name + " loses " + pkmandamage + " HP";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement