View
212
Download
0
Category
Preview:
DESCRIPTION
Phúc SCRIBD.
Citation preview
FUNCTION klikunit(){if (playersturn = 1) {
createButton(attack, butattack, x, y, getNextHighestDepth)createButton(move, butmove, x, y, getNextHighestDepth)if (butattack is Clicked){
removeButton(butattack);removeButton(butmove);if (unittype = 1) { //hero
createButton(attackareaHero, attareaHero, x, y, getNextHighestDepth);
}
Recommended