protected override void OnHide(object userData)
        {
            m_Weapon = null;
            m_Charactor_BasekData = null;

            base.OnHide(userData);
        }
        public static void ShowCharactor(this EntityComponent entityComponent, string charactorKey, CampType campType)
        {
            DRCharactor_Base[] arr  = GameEntry.DataTable.GetDataTable <DRCharactor_Base>().GetAllDataRows();
            DRCharactor_Base   drCB = null;

            foreach (var dr in arr)
            {
                if (dr.Key == charactorKey)
                {
                    drCB = dr;
                    break;
                }
            }
            if (drCB == null)
            {
                throw new GameFrameworkException("Not found charactor key[" + charactorKey + "] from datatable<" + typeof(DRCharactor_Base).Name + ">.");
            }

            int    entityId  = entityComponent.GenerateSerialId();
            string assetName = AssetUtility.GetCharactorAsset(charactorKey);

            CharactorData data = new CharactorData(entityId, drCB.Id, campType, charactorKey);

            entityComponent.ShowEntity(entityId, typeof(Charactor), assetName, "Charactor", Constant.AssetPriority.CharactorAsset, data);
        }
        protected override void OnShow(object userData)
        {
            base.OnShow(userData);

            m_Charactor_BasekData = userData as CharactorData;
            if (m_Charactor_BasekData == null)
            {
                return;
            }

            m_MoveSpeed = m_Charactor_BasekData.MoveSpeed;
            m_IsRunning = false;
            m_Bullet    = m_Charactor_BasekData.BulletMax;
            m_CoolDown  = 0;
        }