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