Exemplo n.º 1
0
 public override bool Init(IUIWnd wnd)
 {
     m_Container      = this.GetComponent <RectTransform>();
     m_Anim           = this.GetComponent <WarFloatFontAnim>();
     floatFontItemRes = AssetBundleManager.GetAssets(AssetType.Asset_Prefab, "UI/Prefabs/DynamicState_Moba/FloatFont/FloatFontItem");
     return(base.Init(wnd));
 }
Exemplo n.º 2
0
 public void SetAnimManager(WarFloatFontAnim anim)
 {
     if (anim != null)
     {
         animManager = anim;
     }
 }
Exemplo n.º 3
0
        public override void Destroy()
        {
            base.Destroy();

            DestroyALL();
            ActiviteList.Clear();
            UnActiviteList.Clear();
            ActiviteList   = null;
            UnActiviteList = null;
            m_Container    = null;
            m_Anim         = null;
            AssetBundleManager.DeleteAssets(ref floatFontItemRes, true);
        }
Exemplo n.º 4
0
        //设置飘字类型
        public bool ChangeType(WarFloatFontType type)
        {
            m_type = type;
            FloatFontAnimData anim = null;

            if (null == animManager)
            {
                animManager = GetRectTransform.parent.GetComponent <WarFloatFontAnim>();
            }
            if (null != animManager)
            {
                anim = animManager.GetAnimData(type);
            }
            if (null != anim)
            {
                m_Anim = anim;
                return(true);
            }
            return(false);
        }