Пример #1
0
    // Use this for initialization
    void Start()
    {
        dm = new dataManager();

        gameData.text = dm.returnWholeGameData();
        portData.text = dm.returnWholePorts();
    }
Пример #2
0
    //If the data is screwed up then you can reset it
    public void resetAllData()
    {
        dm.writeDataResetToFile();
        dm.writePortResetToFile();
        dm.writeMarketForcesResetToFile();

        //update the input fields
        gameData.text = dm.returnWholeGameData();
        portData.text = dm.returnWholePorts();
    }