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