//------------------------------------------------------------------------- public void create(CRenderScene scene, CRenderTurret render_turret) { mScene = scene; mRenderTurret = render_turret; mCSpriteTurretFort = new CSpriteTurretFort(); mCSpriteTurretFort.create(mScene, mRenderTurret); mLinkLockedFishFeature = new LinkLockedFishFeature(mScene, mRenderTurret); //mRateNumber = new CSpriteNumber(mScene, new CPanelDigitFactory(mScene)); //mRateNumber.create(0, mRateNumberPosition, mRateNumberAngel, CSpriteNumber._eNumberSize.Small1); //mRateNumber.setTag("CSpriteTurret" + mRenderTurret.getTurretId()); //mRateNumber.setTrigger(true); }
//------------------------------------------------------------------------- public void destroy() { if (mCSpriteTurretFort != null) { mCSpriteTurretFort.destroy(); mCSpriteTurretFort = null; } if (mLinkLockedFishFeature != null) { mLinkLockedFishFeature.destroy(); mLinkLockedFishFeature = null; } //mRateNumber.destroy(); //mRateNumber = null; }