Example #1
0
        protected internal override void OnShow(object userData)
#endif
        {
            base.OnShow(userData);

            m_MyHumanData = userData as HumanData;
            if (m_MyHumanData == null)
            {
                Log.Error("My Human data is invalid.");
                return;
            }
        }
Example #2
0
 public HumanData CreateMyRole(HumanData data)
 {
     GameEntry.DataServer.HumanServer.Add(data);
     MyHumanData = data;
     return(MyHumanData);
 }
Example #3
0
 public static void ShowMyRole(this EntityComponent entityComponent, HumanData data)
 {
     entityComponent.ShowEntity(typeof(MyHuman), "Human", Constant.AssetPriority.MyHumanAsset, data);
 }