Exemple #1
0
    void Awake()
    {
        dataProvider = GetComponent <DataProvider>();
        CreateManagers();

        playerManager.Init(dataProvider.PlayerData, gameManager, actionsManager, chatManager);
        gameManager.Init(this, playerManager, dataProvider.GameData);
        actionsManager.Init(dataProvider.PlayerData);
        chatManager.Init(gameManager, playerManager, dataProvider.ChatData, actionsManager);
        eventsManager.Init(gameManager, dataProvider.GameData, actionsManager, playerManager, chatManager);

        ClearData();

        SceneManager.LoadScene(MainMenu, LoadSceneMode.Additive);
    }