mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
6 lines
156 B
JavaScript
6 lines
156 B
JavaScript
---------------------------------
|
|
var sp = new _ccsg.Sprite("a.png");
|
|
this.addChild(sp);
|
|
cc.pool.putInPool(sp);
|
|
cc.pool.getFromPool(_ccsg.Sprite, "a.png");
|