下载需要的库:
链接:https://pan.baidu.com/s/1HWgb3zAVomW22zoy6bC07g
提取码:49ev
//包含的需要的库 案例的excel表 和整体的工程文件包
下载解压放到Plugins文件夹下
//编辑excel表 表放到上面的百度云盘里了
//加载excel表数据
using UnityEngine;
using System.Collections;
using System.Data;
using System.IO;
using Excel;
using System.Collections.Generic;
using System;
/**药瓶道具类*/
public class YaoPropData : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
LoadInfo("Assets/Resources/Prop.xlsx");
}
public struct TableData
{
public string propName; //道具名称
public string propDesc; //道具介绍
public int propMoney; //道具价格