public override void SelectTool(string setting) { CreateDockTool tool = null; switch (setting) { case "Cruise": tool = new CreateDockTool(mapController, IndustryType.Cruise); break; case "Breakbulk": tool = new CreateDockTool(mapController, IndustryType.BreakBulk); break; case "Bulk": tool = new CreateDockTool(mapController, IndustryType.Bulk); break; case "Petro": tool = new CreateDockTool(mapController, IndustryType.Petro); break; default: return; } toolSelector.SelectTool(tool); gameObject.GetComponent <Button>().image.color = Color.white; }
public override void SelectTool(string setting) { MapEventTool tool = new MapEventTool(mapController); toolSelector.SelectTool(tool); tool.Type = type; gameObject.GetComponent <Button>().image.color = Color.white; }
public override void SelectTool(string setting) { RoadTool tool = new RoadTool(mapController); if (setting == "unidirectional") { tool.BiDirection = false; } else { tool.BiDirection = true; } toolSelector.SelectTool(tool); gameObject.GetComponent <Button>().image.color = Color.white; }