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