void Update() { if (Input.GetKeyDown(KeyCode.T)) { TextClicked?.Invoke(myText); } }
private void MScrollingText_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { foreach (var v in Items) { if (v.Contain(e.Location)) { TextClicked?.Invoke(v); return; } } } }