public void OnFunctionRequestReceived(object sender,OnFunctionRequestReceivedEventArgs args) { if (String.Compare(args.FunctionName, "DotnetFunctionExample") == 0) // we received our function request { DotnetFunctionRequestExample(args.CallbackName, (int)args.Args[0], (int)args.Args[1], (float)args.Args[2], (string)args.Args[3]); // call our function } }
public static void FireOnFunctionRequestReceived(object sender, OnFunctionRequestReceivedEventArgs args) { if (OnFunctionRequestReceived != null) OnFunctionRequestReceived(sender, args); }