Пример #1
0
    // ===========================================================
    // Methods
    // ===========================================================

    protected override void OnEnable()
    {
        base.OnEnable();
        script = target as MadLevelGridLayout;

        rightSlideSprite = serializedObject.FindProperty("rightSlideSprite");
        leftSlideSprite  = serializedObject.FindProperty("leftSlideSprite");

        iconScale  = serializedObject.FindProperty("iconScale");
        iconOffset = serializedObject.FindProperty("iconOffset");

        leftSlideScale  = serializedObject.FindProperty("leftSlideScale");
        leftSlideOffset = serializedObject.FindProperty("leftSlideOffset");

        rightSlideScale  = serializedObject.FindProperty("rightSlideScale");
        rightSlideOffset = serializedObject.FindProperty("rightSlideOffset");

        gridWidth  = serializedObject.FindProperty("gridWidth");
        gridHeight = serializedObject.FindProperty("gridHeight");

        pixelsWidth  = serializedObject.FindProperty("pixelsWidth");
        pixelsHeight = serializedObject.FindProperty("pixelsHeight");

        pagesOffsetFromResolution = serializedObject.FindProperty("pagesOffsetFromResolution");
        pagesOffsetManual         = serializedObject.FindProperty("pagesOffsetManual");

        lookAtLastLevel = serializedObject.FindProperty("lookAtLastLevel");

        configuration       = serializedObject.FindProperty("configuration");
        hideManagerdObjects = serializedObject.FindProperty("hideManagedObjects");
    }
Пример #2
0
    // ===========================================================
    // Methods
    // ===========================================================
    
    protected override void OnEnable() {
        base.OnEnable();
        script = target as MadLevelGridLayout;
    
        rightSlideSprite = serializedObject.FindProperty("rightSlideSprite");
        leftSlideSprite = serializedObject.FindProperty("leftSlideSprite");
        
        iconScale = serializedObject.FindProperty("iconScale");
        iconOffset = serializedObject.FindProperty("iconOffset");
        
        leftSlideScale = serializedObject.FindProperty("leftSlideScale");
        leftSlideOffset = serializedObject.FindProperty("leftSlideOffset");
        
        rightSlideScale = serializedObject.FindProperty("rightSlideScale");
        rightSlideOffset = serializedObject.FindProperty("rightSlideOffset");
        
        gridWidth = serializedObject.FindProperty("gridWidth");
        gridHeight = serializedObject.FindProperty("gridHeight");

        horizontalAlign = serializedObject.FindProperty("horizontalAlign");
        verticalAlign = serializedObject.FindProperty("verticalAlign");
        
        pixelsWidth = serializedObject.FindProperty("pixelsWidth");
        pixelsHeight = serializedObject.FindProperty("pixelsHeight");
        
        pagesOffsetFromResolution = serializedObject.FindProperty("pagesOffsetFromResolution");
        pagesOffsetManual = serializedObject.FindProperty("pagesOffsetManual");
        
        configuration = serializedObject.FindProperty("configuration");
        hideManagerdObjects = serializedObject.FindProperty("hideManagedObjects");
    }
Пример #3
0
    // ===========================================================
    // Methods
    // ===========================================================

    protected override void OnEnable()
    {
        base.OnEnable();
        script = target as MadLevelGridLayout;

        rightSlideSprite = serializedObject.FindProperty("rightSlideSprite");
        leftSlideSprite  = serializedObject.FindProperty("leftSlideSprite");

        iconScale  = serializedObject.FindProperty("iconScale");
        iconOffset = serializedObject.FindProperty("iconOffset");

        leftSlideScale  = serializedObject.FindProperty("leftSlideScale");
        leftSlideOffset = serializedObject.FindProperty("leftSlideOffset");

        rightSlideScale  = serializedObject.FindProperty("rightSlideScale");
        rightSlideOffset = serializedObject.FindProperty("rightSlideOffset");

        gridWidth  = serializedObject.FindProperty("gridWidth");
        gridHeight = serializedObject.FindProperty("gridHeight");

        limitLevelsPerPage = serializedObject.FindProperty("limitLevelsPerPage");
        levelsPerPage      = serializedObject.FindProperty("levelsPerPage");

        horizontalAlign = serializedObject.FindProperty("horizontalAlign");
        verticalAlign   = serializedObject.FindProperty("verticalAlign");

        pixelsWidth  = serializedObject.FindProperty("pixelsWidth");
        pixelsHeight = serializedObject.FindProperty("pixelsHeight");

        pagingMethod              = serializedObject.FindProperty("pagingMethod");
        pagingInvert              = serializedObject.FindProperty("pagingInvert");
        pagesZoomScale            = serializedObject.FindProperty("pagesZoomScale");
        pagesOffsetFromResolution = serializedObject.FindProperty("pagesOffsetFromResolution");
        pagesOffsetManual         = serializedObject.FindProperty("pagesOffsetManual");
        pagesOffsetPercent        = serializedObject.FindProperty("pagesOffsetPercent");

        ignoreInputForIconsOnDifferentPages = serializedObject.FindProperty("ignoreInputForIconsOnDifferentPages");

        configuration       = serializedObject.FindProperty("configuration");
        hideManagerdObjects = serializedObject.FindProperty("hideManagedObjects");
    }