void OnMouseUpAsButton() { if (EntMethod.isPointerOverUIObject()) { return; } if (manager.getBattleType() == BattleManager.ManagerType.BATTLE_NONE) { return; } if (clickType == UnitType.CLICK_DOWN) { if (campType == UnitType.CAMP_OUR) { manager.updateHeadInfo(gameObject); } else { if (manager.unitType == BattleManager.ManagerType.BATTLE_UNIT_ATK || manager.unitType == BattleManager.ManagerType.BATTLE_UNIT_SKILL) { manager.addTargetToUnit(this); } else { manager.showEnemyData(this); } } clickType = UnitType.CLICK_UP; } }
private void OnMouseUpAsButton() { if (EntMethod.isPointerOverUIObject()) { return; } manager.unitMove(gameObject.transform.position); }