Exemplo n.º 1
0
    /* #endregion */
    /* ======================================================================================== */

    /* #region ==== L O A D  M A T C H ======================================================== */
    void loadMatchScene()
    {
        loadPitchManager();
        loadMatchTeamManager();

        MatchTeamManager.SetupTeams("Aik", "None");
        SceneManager.LoadScene("Match", LoadSceneMode.Single);
    }
Exemplo n.º 2
0
    /* #Endregion */

    /* #region ---- Load MatchTeamManager ---------------------------------------------------- */
    private void loadMatchTeamManager()
    {
        if (MatchTeamManager != null)
        {
            MatchTeamManager.ResetInstance();
        }
        else
        {
            MatchTeamManager = ScriptableObject.CreateInstance <MatchTeamManager>();
        }
    }