Esempio n. 1
0
        protected override void OnDestroy()
        {
            Log.Debug("PathManagerExtendedTool.OnDestroy()");
            base.OnDestroy();

            PathManagerExtendedButton.RemoveButton();
            PathManagerExtendedPanel.RemovePanel();

            DisableTool();
        }
Esempio n. 2
0
        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();
        }