示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        StreamReader reader = new StreamReader(game_file_path);

        _game = GameParser.ParseFile(reader.ReadToEnd());
        _game.SetDefaultValues();
        Debug.Log($"nodes: {_game.nodes.Count}");
        LoadNode(_game.nodes.First(x => x.NodeType == NodeTypes.START));
    }