Ejemplo n.º 1
0
    private void DoABopIt(Bop bop)
    {
        if (bop.GetCurrentState() == ButtonState.Up)
        {
            // Depress the tapped bop
            bop.Depress();

            // Raise a different random one
            RaiseRandomBop(exceptForThisOne: bop);

            OnBop?.Invoke();
        }
    }