public AvatarInfoManager()
        {
            Debug.Log("初始化avatarInfoManager");
            battleValue = new List <BattleValue>();
            goodsValue  = new GoodsValue();
            bulletCount = new Dictionary <int, int>();
            //总共两种子弹
            bulletCount.Add(556, 0);
            bulletCount.Add(762, 0);
            //两种药品
            medicineCount = new Dictionary <int, int>();
            medicineCount.Add(0, 0);
            medicineCount.Add(1, 0);
            //初始化数值
            speed  = 1f;
            blood  = 100;
            Avatar = GameObject.Find("Avatar").transform;
            Scene  = GameObject.Find("Scene").transform;
            //完全依赖事件系统,不采取其他模式更改人物数值
            LiteEventManager.Instance.Register(AvatarValueKey.GunValue, AttackValueChange);
            LiteEventManager.Instance.Register(AvatarValueKey.Blood, BloodValueChange);

            LiteEventManager.Instance.Register(AvatarValueKey.Protect, ProtectValueChange);
            LiteEventManager.Instance.Register(AvatarValueKey.Speed, SpeedValueChange);

            LiteEventManager.Instance.Register(EquipType.bullet_556, BulletValueChange);
            LiteEventManager.Instance.Register(EquipType.bullet_762, BulletValueChange);

            LiteEventManager.Instance.Register(EquipType.medicine_s, MedicineValueChange);
            LiteEventManager.Instance.Register(EquipType.medicine_k, MedicineValueChange);

            LiteEventManager.Instance.Register(EquipType.weapon_gun, AddGun);
        }
 //拷贝构造函数
 public GoodsValue(GoodsValue gv)
 {
     bullet_556 = gv.bullet_556;
     bullet_762 = gv.bullet_762;
     bullet_9   = gv.bullet_9;
     firstAid   = gv.firstAid;
     this.drink = gv.drink;
 }