void Save()
    {
        EditorSceneManager.SaveScene(EditorSceneManager.GetActiveScene());

        GameInfoManager.gameInfo.explorations[exploIndex] = exploration;

        GameInfoManager.SaveGameInfo();
    }
Example #2
0
    void Save()
    {
        GameInfoManager.gameInfo.places = new List <PlaceObject>();

        foreach (PlaceObject place in places)
        {
            if (place.name != "")
            {
                GameInfoManager.gameInfo.places.Add(place);
            }
        }

        GameInfoManager.SaveGameInfo();

        Load();
    }
    void Save()
    {
        GameInfoManager.gameInfo.explorations = new List <ExplorationObject>();

        foreach (ExplorationObject exploration in explorations)
        {
            if (exploration.name != "")
            {
                GameInfoManager.gameInfo.explorations.Add(exploration);
            }
        }

        GameInfoManager.SaveGameInfo();

        Load();
    }
    void Save()
    {
        GameInfoManager.gameInfo.sequences = new List <SequenceObject>();

        foreach (SequenceObject sequence in sequences)
        {
            if (sequence.id != "")
            {
                GameInfoManager.gameInfo.sequences.Add(sequence);
            }
        }

        GameInfoManager.SaveGameInfo();

        Load();
    }
Example #5
0
    void OnGUI()
    {
        scrollPos = EditorGUILayout.BeginScrollView(scrollPos, false, false);
        for (int i = 0; i < nbCharact; i++)
        {
            GUILayout.BeginHorizontal();

            if (myList[i].name == null)
            {
                myList[i].name = "";
            }

            myList[i].name = GUILayout.TextField(myList[i].name);

            myList[i].color = EditorGUILayout.ColorField(myList[i].color);

            myList [i].isLeft = GUILayout.Toggle(myList [i].isLeft, "Name Left");

            GUILayout.EndHorizontal();
        }
        EditorGUILayout.EndScrollView();

        if (GUILayout.Button("New Character"))
        {
            nbCharact++;

            myList [nbCharact - 1] = new CharacterObject();
        }

        GUILayout.FlexibleSpace();

        if (GUILayout.Button("Save"))
        {
            GameInfoManager.gameInfo.characters = new List <CharacterObject> ();

            for (int i = 0; i < nbCharact; i++)
            {
                GameInfoManager.gameInfo.characters.Add(myList[i]);
            }

            GameInfoManager.SaveGameInfo();
        }
    }
    void Save()
    {
        GameInfoManager.gameInfo.sequences[seqIndex] = sequence;

        GameInfoManager.SaveGameInfo();
    }
Example #7
0
    void Save()
    {
        GameInfoManager.gameInfo.places[placeIndex] = place;

        GameInfoManager.SaveGameInfo();
    }