mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-01-13 14:31:10 +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");
|