Exemple #1
0
    public void LoadAll()
    {
        all = JsonUtility.FromJson <MissionsListInVideoGame> (_all.text);

        LoadByVideogame(all.missionsVideoGame1, 0);
        LoadByVideogame(all.missionsVideoGame2, 1);
        LoadByVideogame(all.missionsVideoGame3, 2);
    }
    public void LoadAll(Data.PlayModes playmode)
    {
        Debug.Log("Load all missions from Resources playmode: " + playmode);
        areasManager = GetComponent <AreasManager>();
        areasManager.Init();

        if (playmode == Data.PlayModes.PARTYMODE)
        {
            all = JsonUtility.FromJson <MissionsListInVideoGame>(_all_partymode.text);
        }
        else
        {
            all = JsonUtility.FromJson <MissionsListInVideoGame>(_all.text);
        }

        LoadByVideogame(all.missionsVideoGame1, 0);
        LoadByVideogame(all.missionsVideoGame2, 1);
        LoadByVideogame(all.missionsVideoGame3, 2);
        LoadByVideogame(all.torneo, 3);
    }