//初始化英雄系统 public override void Init() { heroInfo = new HeroInfo(this); inventory = new Inventory(this); equips = new Equips(this); heroInfo.InitHeroInfo(GamingData.INSTANCE().HeroState); inventory.Init(GamingData.INSTANCE().InvenrotyInfo); equips.Init(GamingData.INSTANCE().EquipsInfo); EventCenter.AddListener(EventDefine.FinishTaskDelete, DeleteItems); EventCenter.AddListener(EventDefine.FinishTaskGet, GetItems); EventCenter.Broadcast(EventDefine.InitBag, inventory.GetInventoryInfo); }