Exemplo n.º 1
0
 public void Clear()
 {
     fontFrame.localScale       = Vector3.one;
     fontFrame.anchoredPosition = Vector2.zero;
     m_FontVal  = null;
     liveTime   = 0;
     timer      = 0;
     m_Entity   = null;
     m_Property = null;
     m_enable   = false;
     m_Sequence = null;
     m_Anim     = null;
     m_type     = WarFloatFontType.Invalid;
 }
Exemplo n.º 2
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);
        }