Beispiel #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;
            }
        }
 public static void ShowMyCharacter(this EntityComponent entityComponent, MyCharacterData data)
 {
     entityComponent.ShowEntity(typeof(MyCharacter), "Character", Constant.AssetPriority.MyAircraftAsset, data);
 }