示例#1
0
        public void StartTexting(DamageTextInfo info)
        {
            gameObject.SetActive(true);
            m_text.text  = info.Text;
            m_text.color = info.Color;

            transform.position = WorldPointToScreenPointInCameraCanvas(info.WorldPosition, transform as RectTransform);
        }
示例#2
0
        void OnEventPlayDamageText(DamageTextInfo info)
        {
            DamageText text = PopDamageText();

            text.StartTexting(info);
        }
示例#3
0
 public void OnEventPlayDamageText(DamageTextInfo info)
 {
     EventPlayDamageText?.Invoke(info);
 }