整理ecs框架

This commit is contained in:
yhh
2020-07-22 20:07:14 +08:00
parent 6b8569b0b5
commit 5b8f414a45
31 changed files with 1908 additions and 1239 deletions

View File

@@ -36,7 +36,7 @@ class ListPool {
/**
* 如果可以的话,从堆栈中弹出一个项
*/
public static obtain<T>(): Array<T>{
public static obtain<T>(): T[] {
if (this._objectQueue.length > 0)
return this._objectQueue.shift();