예제 #1
0
        //-------------------------------------------------------------------------
        public void setAim(CRenderFish lock_fish)
        {
            if (mCRenderTurret.getVibTurret().AimParticle.Id <= 0)
            {
                return;
            }

            StillParticle still_particle = mScene.getParticlemanager().newParticle(mCRenderTurret.getVibTurret().AimParticle.ParticlePrefabName);

            mAimParticle = new AimParticle(lock_fish, still_particle);
        }
예제 #2
0
        //-------------------------------------------------------------------------
        public void update(float elapsed_tm)
        {
            mCSpriteCounter.update(elapsed_tm);

            mScoreTurnplate.update(elapsed_tm);

            if (mAimParticle != null)
            {
                mAimParticle.update(elapsed_tm);
                if (mAimParticle.IsEnd)
                {
                    mAimParticle = null;
                }
            }
        }
예제 #3
0
        //-------------------------------------------------------------------------
        public void destroy()
        {
            //if (mCSpriteScore != null)
            //{
            //    mCSpriteScore.release();
            //    mCSpriteScore = null;
            //}

            if (mScoreTurnplate != null)
            {
                mScoreTurnplate.release();
                mScoreTurnplate = null;
            }

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

            mAimParticle = null;
        }
예제 #4
0
        //-------------------------------------------------------------------------
        public void update(float elapsed_tm)
        {
            mCSpriteCounter.update(elapsed_tm);

            mScoreTurnplate.update(elapsed_tm);

            if (mAimParticle != null)
            {
                mAimParticle.update(elapsed_tm);
                if (mAimParticle.IsEnd)
                {
                    mAimParticle = null;
                }
            }
        }
예제 #5
0
        //-------------------------------------------------------------------------
        public void setAim(CRenderFish lock_fish)
        {
            if (mCRenderTurret.getVibTurret().AimParticle.Id <= 0) return;

            StillParticle still_particle = mScene.getParticlemanager().newParticle(mCRenderTurret.getVibTurret().AimParticle.ParticlePrefabName);
            mAimParticle = new AimParticle(lock_fish, still_particle);
        }
예제 #6
0
        //-------------------------------------------------------------------------
        public void destroy()
        {
            //if (mCSpriteScore != null)
            //{
            //    mCSpriteScore.release();
            //    mCSpriteScore = null;
            //}

            if (mScoreTurnplate != null)
            {
                mScoreTurnplate.release();
                mScoreTurnplate = null;
            }

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

            mAimParticle = null;
        }