Пример #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.T))
     {
         TextClicked?.Invoke(myText);
     }
 }
Пример #2
0
 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;
             }
         }
     }
 }