| 124 | } |
| 125 | |
| 126 | SimplePlayer* SimplePlayer::create(int cubeID) { |
| 127 | auto pRet = new (std::nothrow) SimplePlayer(); |
| 128 | |
| 129 | if (pRet && pRet->init(cubeID)) { |
| 130 | pRet->autorelease(); |
| 131 | return pRet; |
| 132 | } |
| 133 | AX_SAFE_DELETE(pRet); |
| 134 | return pRet; |
| 135 | } |