Beispiel #1
0
    private void Awake()
    {
        if (MIG == null)
        {
            Debug.LogError("<color='Red'>No Menu In Game given</color>");
        }

        SAL = SaveAndLoad.GetInstance();
    }
Beispiel #2
0
    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();
    }