private void AssignActionsButtons() { root.Q <Button>("CheckMachineButton").clicked += () => { status.value = coffeeMachine.CheckMachineState(); }; root.Q <Button>("RefillWaterTankButton").clicked += coffeeMachine.RefillWater; root.Q <Button>("RefillCoffeeTankButton").clicked += coffeeMachine.RefillCoffee; root.Q <Button>("RemoveWaterFromTrayButton").clicked += coffeeMachine.RemoveWaterFromTray; root.Q <Button>("RemoveCoffeeGroundsButton").clicked += coffeeMachine.RemoveCoffeeGrounds; }
public void OnCheckStatusPressed() { status.text = coffeeMachine.CheckMachineState(); }