Exemplo n.º 1
0
        static bool MenuVerifyDoSomethingWithPbObject()
        {
            // Using pb_EditorToolbarLoader.GetInstance keeps MakeFacesDoubleSided as a singleton.
            MakeFacesDoubleSided instance = pb_EditorToolbarLoader.GetInstance <MakeFacesDoubleSided>();

            return(instance != null && instance.IsEnabled());
        }
Exemplo n.º 2
0
        static void MenuDoDoSomethingWithPbObject()
        {
            MakeFacesDoubleSided instance = pb_EditorToolbarLoader.GetInstance <MakeFacesDoubleSided>();

            if (instance != null)
            {
                pb_EditorUtility.ShowNotification(instance.DoAction().notification);
            }
        }