Exemplo n.º 1
0
        public override void Show(ToolOverLayProperties <BuildStationOverlayProperties> properties)
        {
            this.properties = properties;

            populationDisplay.text = properties.Data.population.ToString();

            if (!IsVisible)
            {
                ShowCanvas();
            }
        }
        public void UpdateTool <T>(ToolOverLayProperties <T> properties) where T : IToolProperties
        {
            switch (properties.Tool)
            {
            case Tool.BuildStation:
                buildStationOverlayController.Show(properties as ToolOverLayProperties <BuildStationOverlayProperties>);
                activeTool = properties.Tool;
                break;

            case Tool.None:
                break;

            case Tool.BuildTracks:
            case Tool.Demolish:
            default:
                break;
            }
        }
Exemplo n.º 3
0
 public void UpdateToolOverlay <T>(ToolOverLayProperties <T> properties) where T : IToolProperties
 {
     toolOverlayLayerController.UpdateTool <T>(properties);
 }