Example #1
0
 public static void SetIcon(this GameObject gObj, IconManager.Icon icon)
 {
     if (icon == IconManager.Icon.None)
     {
         IconManager.RemoveIcon(gObj);
     }
     else
     {
         IconManager.SetIcon(gObj, icon);
     }
 }
Example #2
0
 public static void SetIcon(this GameObject gObj, Texture2D texture)
 {
     IconManager.SetIcon(gObj, texture);
 }