public override void AddMagicWand(MagicWand newWand)
 {
     if (!MagicWands.Contains(newWand as T))
     {
         MagicWands.Add(newWand as T);
     }
 }
Example #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");
         }
     }
 }
 public abstract void AddMagicWand(MagicWand newWand);
Example #4
0
 public static void OnCustomGUI(MagicWand wand, Rect rect)
 {
     OnCustomGUI(wand, rect, false);
 }
Example #5
0
 public static void OnCustomGUIWithLabel(MagicWand wand, Rect rect, bool bShowEX)
 {
     OnCustomGUI(wand, rect, bShowEX);
     wand.OnCustomGUIName(rect);
 }