mohamed
mohamed
CC#
Created by mohamed on 1/16/2023 in #help
❔ Help create a signals(event) system
Hello there I am trying to recreate a signal system like the one in Godot Basically you can do something like this with it
async void SomeMethod(){

// do stuff

await Signal("signal_name");

// continue doing other stuff

}
async void SomeMethod(){

// do stuff

await Signal("signal_name");

// continue doing other stuff

}
and the function would suspend until the user call EmitSignal("signal_name") I tried recreating it but no luck can anyone help me or show me how to use Task or IAwaitable to do this
9 replies