示例#1
0
 public static Signal New(Action <Godot.Node> callback)
 {
     LambdaChecker.Check(callback);
     return(new SpecializedSignal <CallbackHolder>(CallCallback, new CallbackHolder {
         callback = callback
     }));
 }
示例#2
0
 public static Signal New <PropT>(Action <Godot.Node, PropT> callback, PropT props) where PropT : notnull
 {
     LambdaChecker.Check(callback);
     return(new SpecializedSignal <PropT>(callback, props));
 }