protected internal override void OnShow(object userData) { base.OnShow(userData); #if true //带有数据的测试 m_EntityData = userData as EntityData_Demo; if (m_EntityData != null) { Log.Info("Info Name: [" + m_EntityData.Name + "] Id: [" + m_EntityData.Id + "] String : [" + m_EntityData.TestStr + "]"); } #endif }
/// <summary> /// 创建实体demo中要用到的扩展方法 /// </summary> /// <param name="entityComponent"></param> /// <param name="data"></param> public static void ShowCreateEntityDemo(this EntityComponent entityComponent, EntityData_Demo data) { entityComponent.ShowEntity(typeof(Entity_Demo), "FsmEntityGroup", Constant.AssetPriority.MyAircraftAsset, data); }