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); }
void OnEventPlayDamageText(DamageTextInfo info) { DamageText text = PopDamageText(); text.StartTexting(info); }
public void OnEventPlayDamageText(DamageTextInfo info) { EventPlayDamageText?.Invoke(info); }