//-------------------------------------------------------- // [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 无 1 预留 2 红颜增加 10 古宝增加 public Item(int _id, long _count) { this.id = _id; this.quality = 0; this.useType = 0; this.countEx = _count; } public Item(int _id, long _count, int _useType = 0, int _quality = 0) { this.id = _id; this.quality = _quality; this.useType = _useType; this.countEx = _count; } }