The way it’s supposed to work is that when one of the buttons is pressed, it runs code inside the function PhoneRing(). When I playtest, the “Phone is ringing” message prints but the rest doesn’t do anything (btw OrderTimer runs on game start)
OnBegin<override>()<suspends>:void=
# TODO: Replace this with your code
OrderTimer.SuccessEvent.Subscribe(PhoneRing)
ButtonRestaurant1.InteractedWithEvent.Subscribe(OnOrderTaken)
TakeOrderTimeout.SuccessEvent.Subscribe(PhoneStopRing)
PhoneStopRing(Agent:?agent):void=
ButtonRestaurant1.Disable
ButtonRestaurant2.Disable
PhoneRing(Agent:?agent):void=
ButtonRestaurant1.Enable
ButtonRestaurant2.Enable
TakeOrderTimeout.Start()
Print("Phone is ringing")
I’ve been stuck on this for a while. Can anyone help?