Ejemplo n.º 1
0
    private void OnGUI()
    {
        menu.Reset();
        if (menu.DrawButton("Rock"))
        {
            ui.Selected(new Rock());
        }

        if (menu.DrawButton("Scissors"))
        {
            ui.Selected(new Scissors());
        }

        if (menu.DrawButton("Paper"))
        {
            ui.Selected(new Paper());
        }
    }
Ejemplo n.º 2
0
 public void TriggerEventWhenUserSelectsAMovement()
 {
     ui.Selected(new Rock());
     Assert.AreEqual(1, eventCount);
 }