Beispiel #1
0
 public static void SetIcon(GameObject gObj, WMSetIcon.LabelIcon icon)
 {
     if (WMSetIcon.labelIcons == null)
     {
         WMSetIcon.labelIcons = WMSetIcon.GetTextures("sv_label_", String.Empty, 0, 8);
     }
     WMSetIcon.SetIcon(gObj, WMSetIcon.labelIcons[(Int32)icon].image as Texture2D);
 }
Beispiel #2
0
 public static void SetIcon(GameObject gObj, WMSetIcon.Icon icon)
 {
     if (WMSetIcon.largeIcons == null)
     {
         WMSetIcon.largeIcons = WMSetIcon.GetTextures("sv_icon_dot", "_pix16_gizmo", 0, 16);
     }
     WMSetIcon.SetIcon(gObj, WMSetIcon.largeIcons[(Int32)icon].image as Texture2D);
 }