public void onShapeCaught(Combo.Shape caughtShape) { if (activeCombo.HasValue) { if (activeCombo.Value.shape.Equals(caughtShape)) { postComboEventPassed(activeCombo.Value); } else { //Combo failed! postComboEventFailed(activeCombo.Value); activeCombo = null; } } }
public Combo(Combo.Color color, Combo.Shape shape) { this.color = color; this.shape = shape; }