Esempio n. 1
0
        public static void InitMonUX(Game game, IRenderer renderer)
        {
            myServiceProvider = new MonuxServiceProvider(game);
            myRenderer        = renderer;

            EmbeddedContent.Init();
            myRenderer.Init();
            MouseManager.Init();
            KeyboardManager.Init();

            game.Components.Add(new MonuxComponent(game));
        }
Esempio n. 2
0
    /// <summary>
    /// initialize all the managers
    /// </summary>
    public void Init()
    {
        boundMng = GetComponent <BoundManager>();
        if (boundMng != null)
        {
            boundMng.Init();
        }

        mouseMng = GetComponent <MouseManager>();
        if (mouseMng != null)
        {
            mouseMng.Init(this);
        }

        leaderboardMng = GetComponent <LeaderboardManager>();
        if (leaderboardMng != null)
        {
            leaderboardMng.Init();
        }

        scoreMng = GetComponent <ScoreManager>();
        if (scoreMng != null)
        {
            scoreMng.Init(this);
        }

        elementsMng = GetComponent <ElementsManager>();
        if (elementsMng != null)
        {
            elementsMng.Init(this);
        }

        timerMng = GetComponent <TimerManager>();
        if (timerMng != null)
        {
            timerMng.Init(this);
        }

        uiMng = GetComponent <UIManager>();
        if (uiMng != null)
        {
            uiMng.Init(this);
        }
    }