/// <summary> /// 显示怪物实体 /// </summary> /// <param name="entityComponent">实体组件</param> /// <param name="data">怪物实体数据</param> public static void ShowMonster(this EntityComponent entityComponent, MonsterData data) { entityComponent.ShowEntity <DRMonster>(typeof(Monster), "Character", Constant.AssetPriority.CharacterAsset, data); }
protected override void OnInit(object userData) { base.OnInit(userData); MonsterStats = (MonsterData)userData; }