protected override void OnDestroy() { Log.Debug("PathManagerExtendedTool.OnDestroy()"); base.OnDestroy(); PathManagerExtendedButton.RemoveButton(); PathManagerExtendedPanel.RemovePanel(); DisableTool(); }
protected override void Awake() { Log.Info("LaneManagerTool.Awake()"); base.Awake(); Tools = new Dictionary <ToolType, BaseTool>() { { ToolType.SelectInstance, new SelectInstanceTool() }, { ToolType.SelectLane, new SelectLaneTool() }, { ToolType.SelectMultipleInstances, new SelectMultipleInstancesTool() }, // More here... }; PathManagerExtendedButton.CreateButton(); PathManagerExtendedPanel.CreatePanel(); DisableTool(); }