public void CentreMap() { CityState cityState = humanPlayer.GetCityStates().FirstOrDefault(); if (cityState) { hexMapCamera.MoveCamera(cityState.GetCity().GetHexCell()); } else { Agent agent = humanPlayer.GetAgents().FirstOrDefault(); if (agent) { hexMapCamera.MoveCamera(agent.HexUnit.Location); } else { HexMapCamera.ValidatePosition(); } } }
public static void MoveTo(HexCell cell) { instance.MoveCamera(cell); }