Exemplo n.º 1
0
    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();
            }
        }
    }
Exemplo n.º 2
0
 public static void MoveTo(HexCell cell)
 {
     instance.MoveCamera(cell);
 }