//------------------------------------------------------------------------- public override void destroy() { base.destroy(); mLockFishObjId = -1; if (mSpriteFish != null) { mSpriteFish.destroy(); mSpriteFish = null; } if (_isMe()) { mScene.getProtocol().c2sUnlockFish(mScene.getMyPlayerId()); } }
//------------------------------------------------------------------------- public void destroy() { if (mISpriteFish == null) { return; } // 播放鱼销毁后的粒子特效 if (!mNotNeedDestroyParticle && IsDestroy) { mFishParticleMgr.fishDestroy(mPlayerId, mVibFish.Id, mTotalScore); mFishParticleMgr.fishCoins(mPlayerId); } mFishParticleMgr.destroy(); mISpriteFish.destroy(); mISpriteFish = null; }