示例#1
0
文件: Starter.cs 项目: bmjoy/ecs
 public void Add <T>() where T : new()
 {
     Toolbox.Add <T>();
 }
示例#2
0
文件: Starter.cs 项目: bmjoy/ecs
 /// <summary>
 /// <para>Adds an object to the toolbox by type. It is mainly used to add processing scripts.</para>
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 protected static T Add <T>() where T : new()
 {
     return(Toolbox.Add <T>());
 }