Beispiel #1
0
        //-------------------------------------------------------------------------
        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);
        }
Beispiel #2
0
        //-------------------------------------------------------------------------
        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);
        }
Beispiel #3
0
        //-------------------------------------------------------------------------
        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
        }
Beispiel #4
0
        //-------------------------------------------------------------------------
        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
        }
Beispiel #5
0
 //-------------------------------------------------------------------------
 public LevelScreenShocker(CRenderScene render_scene, CSpriteBackgroundLoader loader)
 {
     mScene            = render_scene;
     mBackgroundLoader = loader;
 }
Beispiel #6
0
 //-------------------------------------------------------------------------
 public BgSpriteMgr(CRenderScene scene, CSpriteBackgroundLoader loader)
 {
     mScene = scene;
     mBackgroundLoader = loader;
 }
Beispiel #7
0
 //-------------------------------------------------------------------------
 public BgSpriteMgr(CRenderScene scene, CSpriteBackgroundLoader loader)
 {
     mScene            = scene;
     mBackgroundLoader = loader;
 }
Beispiel #8
0
 //-------------------------------------------------------------------------
 public LevelScreenShocker(CRenderScene render_scene, CSpriteBackgroundLoader loader)
 {
     mScene = render_scene;
     mBackgroundLoader = loader;
 }