Aizzah_Device.verse

mail@pastecode.io avatar
unknown
plain_text
2 years ago
817 B
56
Indexable
Never
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

Aizzah_Device:= class(creative_device):
	@editable
	Color : string = "Blue"

    @editable
	Zarzory : button_device = button_device{}
    ARtext<localizes>:message = "دخول"
    ENtext<localizes>:message = "Enter"

    @editable
	ARbutton : button_device = button_device{}
    @editable
	ENbutton : button_device = button_device{}
    


    OnBegin<override>()<suspends>:void=
        ARbutton.InteractedWithEvent.Subscribe(Arabic)
        ENbutton.InteractedWithEvent.Subscribe(English)
        

    Arabic(IntPlayer:agent) : void =
        Zarzory.SetInteractionText(ARtext)

    English(IntPlayer:agent) : void =
        Zarzory.SetInteractionText(ENtext)