public Dictionary <string, HeroData> team            = new Dictionary <string, HeroData>(); //小队字典--from Duke
    protected override void Awake()
    {
        base.Awake();
        //启动流路径(将需要操作的文件从流路径拷贝到沙盒中)
        StreamsLoading = gameObject.AddComponent <DataStreamsLoading>();

        //是否拷贝完成
        StreamsLoading.onCopyFinished += OnLoadFinished;
        //开始拷贝(输入对应的表名)
        StreamsLoading.LoadWitgPath(ConstData.SQLITE_NAME);
    }
Beispiel #2
0
    protected override void Awake()
    {
        base.Awake();
        //初始化数据源字典
        if (dataSource == null)
        {
            dataSource = new Dictionary <int, ItemData>();
        }

        //启动流路径(将需要操作的文件从流路径拷贝到沙盒中)
        StreamsLoading = gameObject.AddComponent <DataStreamsLoading>();

        //是否拷贝完成
        StreamsLoading.onCopyFinished += OnLoadFinished;
        //开始拷贝(输入对应的表名)
        StreamsLoading.LoadWitgPath(new string[] { "输入对应的表名", "表名" });
    }