Пример #1
0
 /// <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);
 }
Пример #2
0
 protected override void OnInit(object userData)
 {
     base.OnInit(userData);
     MonsterStats = (MonsterData)userData;
 }