Example #1
0
    void Start()
    {
        m_Logic = this;

        m_LevelLogic  = new LevelLogic();
        m_PhysManager = new PhysicsManager();

        m_InputManager.Init();
        m_Level.Init();
        m_EntityManager.Init();
        m_GUILogic.Init();

        m_LevelLogic.AddGameStartListener(GameStarted);
        m_LevelLogic.AddLevelStartListener(LevelStarted);
        m_LevelLogic.AddLevelEndListener(LevelEnded);
    }
Example #2
0
    void Start()
    {
        m_Logic = this;

        dataController = new DataController();

        m_LevelLogic = new LevelLogic();
        // m_PhysManager = new PhysicsManager();

        // m_InputManager.Init();
        // m_Level.Init();
        m_GUILogic.Init();

        m_LevelLogic.AddGameStartListener(GameStarted);
        m_LevelLogic.AddLevelStartListener(LevelStarted);
        m_LevelLogic.AddLevelEndListener(LevelEnded);
    }