调整了模板
This commit is contained in:
@@ -21,7 +21,7 @@ public static class LabelExtensions
|
||||
{
|
||||
self.Text = text;
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
BIT4Log.Warnning(path);
|
||||
throw;
|
||||
|
@@ -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