public void swap_defend() { if (allowDefend) { //then we need to swap the moves DefendMove temp = lastUnit.get_defendEquipped(); lastUnit.set_defendEquipped(lastUnit.get_reserveDefend()[incumbentId]); lastUnit.get_reserveDefend()[incumbentId] = temp; //now, undo the highlight specialMoveDisplay[1].gameObject.GetComponent <Image>().color = new Color(218f / 255f, 248f / 255f, 255f / 255f); //now, update frontMoves load_party_unit(lastUnit); //and scrollview scroller.GetComponent <PopulateScroller>().populate_defend(lastUnit.get_reserveDefend()); //finally, reset allowDefend = false; allowFocusSwitch = true; } }
public void set_defendEquipped(DefendMove defg) { defendEquipped = defg; }