Ejemplo n.º 1
0
 private static void DisableEyedropperPreview(ObjectReferenceDrawer drawer)
 {
     if (instance != null)
     {
         ObjectReferenceDrawer.eyedropperCurrentTarget -= instance.GetMouseovered;
         instance.Dispose();
         instance = null;
     }
 }
Ejemplo n.º 2
0
 private static void EnableEyedropperPreview(ObjectReferenceDrawer drawer)
 {
     if (instance == null)
     {
         instance = new Eyedropper();
         ObjectReferenceDrawer.eyedropperCurrentTarget += instance.GetMouseovered;
         instance.type = drawer.Type;
     }
 }