コード例 #1
0
    void LoadTestSave()
    {
        var path     = Application.streamingAssetsPath + "\\Sectors\\TestWorld";
        var savePath = Application.persistentDataPath + "\\Saves\\TestSave";

        if (File.Exists(savePath))
        {
            File.Delete(savePath);
        }
        SaveMenuHandler.CreateSave("TestSave");
        SectorManager.testJsonPath     = path;
        SectorManager.testResourcePath = originalReadPath;
        SaveMenuIcon.LoadSaveByPath(savePath, false);
    }
コード例 #2
0
 void Awake()
 {
     instance = this;
 }