예제 #1
0
        //-------------------------------------------------------------------------
        public override void destroy()
        {
            base.destroy();

            mLockFishObjId = -1;

            if (mSpriteFish != null)
            {
                mSpriteFish.destroy();
                mSpriteFish = null;
            }

            if (_isMe())
            {
                mScene.getProtocol().c2sUnlockFish(mScene.getMyPlayerId());
            }
        }
예제 #2
0
        //-------------------------------------------------------------------------
        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;
        }