新增DelayedIteratingSystem/IntervalSystem/IntervalIteratingSystem
This commit is contained in:
@@ -380,6 +380,16 @@ module es {
|
||||
this.components.update();
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建组件的新实例。返回实例组件
|
||||
* @param componentType
|
||||
*/
|
||||
public createComponent<T extends Component>(componentType: new () => T): T {
|
||||
let component = new componentType();
|
||||
this.addComponent(component);
|
||||
return component;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将组件添加到组件列表中。返回组件。
|
||||
* @param component
|
||||
|
||||
Reference in New Issue
Block a user