//------------------------------------------------------------------------- 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); }
//------------------------------------------------------------------------- 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; } } }
//------------------------------------------------------------------------- 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; }
//------------------------------------------------------------------------- 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); }