예제 #1
0
        //-------------------------------------------------------------------------
        public void create(CRenderScene scene, CRenderTurret render_turret)
        {
            mScene = scene;

            if (mScene.isBot()) return;

            mCSpriteTurretScoreShow = new CSpriteTurretScoreShow();
            mCSpriteTurretScoreShow.create(scene, render_turret);

            mSpriteTurret = new CSpriteTurret();
            mSpriteTurret.create(scene, render_turret);
            mSpriteTurret.aimAt(render_turret.getTurretAngle());
            mSpriteTurret.displayRate(render_turret.getTurretRate());
            mSpriteTurret.reloadAnimation();
        }
예제 #2
0
        //-------------------------------------------------------------------------
        public void create(CRenderScene scene, CRenderTurret render_turret)
        {
            mScene = scene;

            if (mScene.isBot())
            {
                return;
            }

            mCSpriteTurretScoreShow = new CSpriteTurretScoreShow();
            mCSpriteTurretScoreShow.create(scene, render_turret);

            mSpriteTurret = new CSpriteTurret();
            mSpriteTurret.create(scene, render_turret);
            mSpriteTurret.aimAt(render_turret.getTurretAngle());
            mSpriteTurret.displayRate(render_turret.getTurretRate());
            mSpriteTurret.reloadAnimation();
        }