void Handle(Input.BuyCarrotTrigger action) { if (action.Value == 0) { OnBuyReaction = Template.CarrotsReaction.DefaultValue; } else { OnBuyReaction = "You bought a carrot!"; } }
void Handle(Input.BuyCarrotTrigger action) { OnBuyReaction = action.Value == 0 ? Template.CarrotsReaction.DefaultValue : "You bought a carrot!"; }