//-------------------------------------------------------- // [Author]: 玩个游戏 // [ Date ]: Monday, July 31, 2017 //-------------------------------------------------------- using UnityEngine; using System.Collections; public struct Item { public int id; public long countEx; public int quality; public int useType; //用途定义:0 默认无 10 - 古宝 20 - 红颜 30 - 称号 40 -分解 public string dataEx; public Item(int _id, long _count) { this.id = _id; this.quality = 0; this.useType = 0; this.countEx = _count; this.dataEx = ""; } public Item(int _id, long _count, int _useType = 0, int _quality = 0, string _dataEx = "") { this.id = _id; this.quality = _quality; this.useType = _useType; this.countEx = _count; this.dataEx = _dataEx; } }