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