Пример #1
0
 void OnRegisterClick(ClickSettings clickSettings)
 {
     clicksHeard.Add(clickSettings);
     if (clicksHeard.Count == clicks.Count / 2)
     {
         ClickEvent clickEvent = new ClickEvent(clicksHeard);
         Events.instance.Raise(clickEvent);
         Click(clicksHeard[0].left ? LEFT : RIGHT, clickEvent);
         clicksHeard.Clear();
     }
 }
Пример #2
0
 protected override void OnDown()
 {
     clickSettings = new ClickSettings(left, Layer, LayerHit, Moused);
     onRegisterClick(clickSettings);
 }