//------------------------------------------------------------------------- public void create(int fish_vib_id, int fish_objid) { mVibFish = EbDataMgr.Instance.getData <TbDataFish>(fish_vib_id); mFishObjId = fish_objid; mISpriteFish = mScene.getSpriteFishFactory().buildSpriteFish(this, fish_vib_id); mMassEntity = new MassEntity(); mMassEntity.setSpeed(mVibFish.getSpeed()); mISpriteFish.setDirection(0); mFishParticleMgr = new FishParticleMgr(mScene, this, fish_vib_id, mISpriteFish); mFishParticleMgr.fishBorn(); mFishParticleMgr.fishMoving(); }
//------------------------------------------------------------------------- public void create(int fish_vib_id, int fish_objid) { mVibFish = EbDataMgr.Instance.getData<TbDataFish>(fish_vib_id); mFishObjId = fish_objid; mISpriteFish = mScene.getSpriteFishFactory().buildSpriteFish(this, fish_vib_id); mMassEntity = new MassEntity(); mMassEntity.setSpeed(mVibFish.getSpeed()); mISpriteFish.setDirection(0); mFishParticleMgr = new FishParticleMgr(mScene, this, fish_vib_id, mISpriteFish); mFishParticleMgr.fishBorn(); mFishParticleMgr.fishMoving(); }