// =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== // =========================================================== // Methods // =========================================================== void Start() { var lastUnlockedLevelName = MadLevel.FindLastUnlockedLevelName(); var currentLayout = MadLevelLayout.current; var icon = currentLayout.GetIcon(lastUnlockedLevelName); lastUnlockedTransform = icon.transform; }
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; }