Exemplo n.º 1
0
        private static void CreateTools()
        {
            realIvyProToolsWindow = ScriptableObject.CreateInstance <RealIvyTools>();
            realIvyProToolsWindow.Init(instance, controller.infoPool);

#if UNITY_2019_1_OR_NEWER
            SceneView.duringSceneGui -= realIvyProToolsWindow.OnSceneGUI;
            SceneView.duringSceneGui += realIvyProToolsWindow.OnSceneGUI;
#else
            SceneView.onSceneGUIDelegate -= realIvyProToolsWindow.OnSceneGUI;
            SceneView.onSceneGUIDelegate += realIvyProToolsWindow.OnSceneGUI;
#endif
        }
Exemplo n.º 2
0
 public void Init(InfoPool infoPool, MeshFilter mf, RealIvyTools proToolsWindow)
 {
     this.infoPool       = infoPool;
     this.mf             = mf;
     this.proToolsWindow = proToolsWindow;
 }