Exemple #1
0
    // ===========================================================
    // Methods for/from SuperClass/Interfaces
    // ===========================================================

    // ===========================================================
    // Methods
    // ===========================================================

    void Start()
    {
        var lastUnlockedLevelName = MadLevel.FindLastUnlockedLevelName();
        var currentLayout         = MadLevelLayout.current;
        var icon = currentLayout.GetIcon(lastUnlockedLevelName);

        lastUnlockedTransform = icon.transform;
    }
Exemple #2
0
    private void Initialize()
    {
        var currentLayout = MadLevelLayout.current;
        var configuration = MadLevel.activeConfiguration;
        var group         = configuration.FindGroupById(currentLayout.configurationGroup);

        var lastUnlockedLevelName = MadLevel.FindLastUnlockedLevelName(group.name);

        var icon = currentLayout.GetIcon(lastUnlockedLevelName);

        lastUnlockedTransform = icon.transform;

        initialized = true;
    }