Exemplo n.º 1
0
 protected override void OnInit(object userData)
 {
     base.OnInit(userData);
     NpcData = (NPCData)userData;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 显示NPC实体
 /// </summary>
 /// <param name="entityComponent">实体组件</param>
 /// <param name="data">NPC实体数据</param>
 public static void ShowNPC(this EntityComponent entityComponent, NPCData data)
 {
     entityComponent.ShowEntity <DRNPC>(typeof(NPC), "Character", Constant.AssetPriority.CharacterAsset, data);
 }