移除所有egret 依赖。移除renderablecomponent及所有依赖,移除camera。保持ecs基础框架
This commit is contained in:
@@ -52,7 +52,7 @@ module es {
|
||||
public static free<T>(obj: T) {
|
||||
this._objectQueue.unshift(obj);
|
||||
|
||||
if (egret.is(obj, "IPoolable")){
|
||||
if (isIPoolable(obj)){
|
||||
obj["reset"]();
|
||||
}
|
||||
}
|
||||
@@ -64,4 +64,6 @@ module es {
|
||||
*/
|
||||
reset();
|
||||
}
|
||||
|
||||
export var isIPoolable = (props: any): props is IPoolable => typeof (props as IPoolable)['js'] !== 'undefined';
|
||||
}
|
||||
Reference in New Issue
Block a user