//------------------------------------------------------------------------- public void create(CRenderScene render_scene) { mScene = render_scene; _initRippleBackground(); mBackgroundLoader = new CSpriteBackgroundLoader(); mLevelScreenShocker = new LevelScreenShocker(mScene, mBackgroundLoader); mLevelBackgroundMgr = new LevelBackgroundMgr(mScene, mBackgroundLoader); mLevelSeaStarMgr = new LevelSeaStarMgr(mScene); }
//------------------------------------------------------------------------- public LevelBackgroundMgr(CRenderScene scene, CSpriteBackgroundLoader loader) { mScene = scene; mBackgroundLoader = loader; mSpeed = 960f / mMaxTime; mWaveStillSprite = mScene.getRenderObjectPool().newStillSprite(); mWaveStillSprite.playAnimation("WaterWave"); mWaveStillSprite.setActive(false); mWaveStillSprite.setScale(700f / 550f); #if UNITY_EDITOR mWaveStillSprite.gameObject.name = "TkSpriteWaterWave"; #endif }
//------------------------------------------------------------------------- public LevelScreenShocker(CRenderScene render_scene, CSpriteBackgroundLoader loader) { mScene = render_scene; mBackgroundLoader = loader; }
//------------------------------------------------------------------------- public BgSpriteMgr(CRenderScene scene, CSpriteBackgroundLoader loader) { mScene = scene; mBackgroundLoader = loader; }