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(); } }
protected override void OnDown() { clickSettings = new ClickSettings(left, Layer, LayerHit, Moused); onRegisterClick(clickSettings); }