예제 #1
0
 public override void AddMagicWand(MagicWand newWand)
 {
     if (!MagicWands.Contains(newWand as T))
     {
         MagicWands.Add(newWand as T);
     }
 }
예제 #2
0
 public static void OnCustomGUI(MagicWand wand, Rect rect, bool bShowEX)
 {
     wand.OnCustomGUI(rect);
     rect = ExLabelRect(rect);
     if (bShowEX)
     {
         if (wand.IsExclusive)
         {
             OnCustomGUIExLabel(rect, Color.red * 0.5f, "Exclusive");
             rect.y += rect.height;
         }
         if (wand.bAllowMultipleApplyOnAClick)
         {
             OnCustomGUIExLabel(rect, Color.blue * 0.5f, "Multiple");
         }
     }
 }
예제 #3
0
 public abstract void AddMagicWand(MagicWand newWand);
예제 #4
0
 public static void OnCustomGUI(MagicWand wand, Rect rect)
 {
     OnCustomGUI(wand, rect, false);
 }
예제 #5
0
 public static void OnCustomGUIWithLabel(MagicWand wand, Rect rect, bool bShowEX)
 {
     OnCustomGUI(wand, rect, bShowEX);
     wand.OnCustomGUIName(rect);
 }