MethodFluxAttribute
using UniFlux;
public sealed class TestFlux : MonoFlux
{
// "1".Dispatch()
[MethodFlux("1")] private void OnExample_1()
{
Debug.Log("Hello World");
}
// "2".Dispatch(42)
[MethodFlux("2")] private void OnExample_2(int value)
{
Debug.Log(value);
}
//string response = "3".Dispatch<string>()
[MethodFlux("3")] private string OnExample_3()
{
return "Hello World";
}
//string response = "4".Dispatch<int, string>(42)
[MethodFlux("4")] private string OnExample_4(int value)
{
return value.ToString();
}
}Last updated