コード例 #1
0
        protected override void OnShow(object userData)
        {
            base.OnShow(userData);

            m_MyCharacterData = userData as MyCharacterData;
            if (m_MyCharacterData == null)
            {
                Log.Error("My aircraft data is invalid.");
                return;
            }
        }
コード例 #2
0
 public static void ShowMyCharacter(this EntityComponent entityComponent, MyCharacterData data)
 {
     entityComponent.ShowEntity(typeof(MyCharacter), "Character", Constant.AssetPriority.MyAircraftAsset, data);
 }