调整了模板
This commit is contained in:
@@ -35,4 +35,11 @@ public static partial class MathNode
|
||||
x.QueueFree();
|
||||
}
|
||||
}
|
||||
|
||||
public static T Create<T>(this Node self) where T : Node,new()
|
||||
{
|
||||
var t = new T();
|
||||
self.AddChild(t);
|
||||
return t;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user