private void Awake() { if (MIG == null) { Debug.LogError("<color='Red'>No Menu In Game given</color>"); } SAL = SaveAndLoad.GetInstance(); }
private void Start() { SAL = SaveAndLoad.GetInstance(); if (SAL) { HighestLevel = SAL.GetProgression(); NumberOfLevels = SAL.GetNumberOfLevels(); Debug.Log(HighestLevel); } HorizontalMaxButtons = (int)(RT.rect.width / (ButtonWidth + ButtonMargin)); HorizontalPadding = RT.rect.width % (ButtonWidth + ButtonMargin); VerticalMaxButtons = (int)(RT.rect.height / (ButtonHeight + ButtonMargin)); VerticalPadding = RT.rect.height % (ButtonHeight + ButtonMargin); GenerateButtonLoop(); }