Beispiel #1
0
        void OnEnable()
        {
            authoring = (RoomAuthoring)target;

            var gameObject = authoring.gameObject;

            if (!GameObjectEditorIconHelper.GetHasIcon(gameObject))
            {
                GameObjectEditorIconHelper.SetIcon(gameObject, GameObjectEditorIconHelper.LabelIcon.Green);
            }
        }
        void OnEnable()
        {
            authoring = (RoomExcludePortalAuthoring)target;

            var gameObject = authoring.gameObject;

            if (!GameObjectEditorIconHelper.GetHasIcon(gameObject))
            {
                GameObjectEditorIconHelper.SetIcon(gameObject, GameObjectEditorIconHelper.LabelIcon.Red);
            }
        }