Ejemplo n.º 1
0
        private string loadPuzzleFromData(string data)
        {
            string guid = "";

            var new_puzzle = new Puzzle();

            new_puzzle.Deserialize(data);

            puzzles.Add(guid, new_puzzle);

            return(guid);
        }
Ejemplo n.º 2
0
        public string LoadPuzzleFromFile(string path)
        {
            var new_puzzle = new Puzzle();

            var text_asset = Resources.Load <TextAsset>(path);

            new_puzzle.Deserialize(text_asset.text);

            puzzles.Add("", new_puzzle);

            ActivePuzzle = new_puzzle;

            return(null);
        }