Esempio n. 1
0
        static void OnSceneGUI(SceneView sceneView)
        {
            Event e = Event.current;

            if (e.type == EventType.Repaint)
            {
                CSGGrid.Draw();
            }
        }
Esempio n. 2
0
        static void SetGridMode(GridMode gridMode)
        {
            if (gridMode == GridMode.SabreCSG)
            {
                CSGGrid.Activate();
            }
            else
            {
                CSGGrid.Deactivate();
            }

            if (gridMode == GridMode.Unity)
            {
                ShowOrHideUnityGrid(true);
            }
            else
            {
                ShowOrHideUnityGrid(false);
            }
        }