public void _OnCursorDown(int cursorID=-1){ //Debug.Log("_OnCursorDown"); if(hoveredTile==null) return; if(TBTK.IsCursorOnUI(cursorID)) return; if(!TurnControl.ClearToProceed()) return; if(GameControl.GetGamePhase()==_GamePhase.Over) return; if(GameControl.GetGamePhase()==_GamePhase.UnitDeployment){ if(hoveredTile.unit==null) FactionManager.DeployUnitOnTile(hoveredTile); else if(hoveredTile.unit!=null) FactionManager.UndeployUnit(hoveredTile.unit); return; } if(AbilityManager.InTargetMode()){ Debug.Log("AbilityTargetSelected"); targetModeTargetSelected(hoveredTile); } else OnTile(hoveredTile); }