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; } }
public void UpdateToolOverlay <T>(ToolOverLayProperties <T> properties) where T : IToolProperties { toolOverlayLayerController.UpdateTool <T>(properties); }