Beispiel #1
0
    public void ToScreensaver()
    {
        TrinaxGlobal.Instance.state = STATES.SCREENSAVER;
        AppManager.gameManager.ResetValues();
        ObjectPropertyManager.PopulateObjectProperties();

        // Put 0 for transit duration due to animation being played on this canvas
        canvasController.TransitToCanvas((int)STATES.SCREENSAVER, 0);

        //APICalls.RunUpdateLeaderboard(lb).WrapErrors();
    }
Beispiel #2
0
    public void Init()
    {
        InitButtonListeners();

        // Initialization ready
        IsReady = true;
        Debug.Log("<color=green> UIManager is ready! </color>");

        if (!background.gameObject.activeSelf)
        {
            background.gameObject.SetActive(true);
        }
        canvasController.OnStartup((int)STATES.SCREENSAVER, 0.25f, () =>
        {
            TrinaxGlobal.Instance.state = STATES.SCREENSAVER;
            AppManager.gameManager.ResetValues();
            ObjectPropertyManager.PopulateObjectProperties();
            TrinaxManager.trinaxAudioManager.PlayMusic(TrinaxAudioManager.AUDIOS.IDLE, true);
        });
    }