Verse Library verse

02 Fragment

Subscribes to the button interaction event to trigger the reward handling function when players press it.

verse-library/verse-devices-common-devices/02-fragment.verse

OnBegin<override>()<suspends> : void =
        # "When the reward button is interacted with, run OnRewardPressed."
        RewardButton.InteractedWithEvent.Subscribe(OnRewardPressed)

Comments

    Sign in to vote, comment, or suggest an edit. Sign in