Пример #1
0
            public static void SetIcon(GameObject go, GameObjectLabelIcon icon)
            {
                if (_labelIcons == null)
                {
                    _labelIcons = GetTextures("sv_label_", string.Empty, 0, 8);
                }

                SetIcon(go, _labelIcons[(int)icon].image as Texture2D);
            }
Пример #2
0
        public static void SetIcon(this GameObject go, GameObjectLabelIcon icon)
        {
#if UNITY_EDITOR
            IconUtility.SetIcon(go, icon);
#endif
        }