Beispiel #1
0
        static bool MenuVerifyDoSomethingWithPbObject()
        {
            // Using pb_EditorToolbarLoader.GetInstance keeps MakeFacesDoubleSided as a singleton.
            CreateShadowObject instance = pb_EditorToolbarLoader.GetInstance <CreateShadowObject>();

            return(instance != null && instance.IsEnabled());
        }
Beispiel #2
0
        static void MenuDoDoSomethingWithPbObject()
        {
            CreateShadowObject instance = pb_EditorToolbarLoader.GetInstance <CreateShadowObject>();

            if (instance != null)
            {
                SceneView.lastActiveSceneView.ShowNotification(new GUIContent(instance.DoAction().notification));
            }
        }