调整了模板

This commit is contained in:
CortexCore
2023-07-17 04:10:14 +08:00
parent 498b0617f8
commit e27cce2ac3
56 changed files with 2165 additions and 581 deletions

View File

@@ -21,7 +21,7 @@ public static class LabelExtensions
{
self.Text = text;
}
catch (Exception e)
catch (Exception)
{
BIT4Log.Warnning(path);
throw;

View File

@@ -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;
}
}