public void setData(GameBattleUnit unit) { description.text = ""; selection = GameDefine.INVALID_ID; for (int i = 0; i < GameDefine.MAX_SLOT; i++) { slots[i].clear(); if (unit.Skill[i] == GameDefine.INVALID_ID) { continue; } GameSkill m = GameSkillData.instance.getData(unit.Skill[i]); slots[i].setData(m); slots[i].enable(unit.canUseSkill(m)); if (i == 0) { select(0); } } }
void onMoveOver() { GameTouchCenterUI.instance.showUI(); isMoving = false; GameBattleUnit a = GameBattleSelection.instance.SelectionUnit; GameBattleUnitActionUI.instance.show(false, a.canUseSkill()); GameBattleUnitActionUI.instance.setPos(GameBattleCursor.instance.PosX, GameBattleCursor.instance.PosY); GameBattleUnitActionUI.instance.showFade(); GameBattleCursor.instance.unShow(); clearInput(); }