void Start()
        {
            spriteText1=wallText1.GetComponent<SpriteText>();
            blockController=GetComponent<BlockController>();
            spriteText2=wallText2.GetComponent<SpriteText>();
            spriteText3=wallText3.GetComponent<SpriteText>();

            spriteTextScore=wallTextScore.GetComponent<SpriteText>();

            gameManager = GameObject.Find ("GameManager");
            gameData=gameManager.GetComponent<GameData>();

            this.SetHeightLabel (10,gameData.blockHeight*posStep*2,Type.First);
            this.SetHeightLabel (20,gameData.blockHeight*posStep*4,Type.Second);
            this.SetHeightLabel (30,gameData.blockHeight*posStep*6,Type.Third);
            this.SetLifeScoreExchange (gameData.exchangePoinsts,gameData.blockHeight*posStep);
        }
        public override void StartState()
        {
            this.GetController().GetData().actualLifePoints--;
            mainCamera = GameObject.Find ("Main Camera");
            if (mainCamera == null) {
                throw new MissingReferenceException("Na sscenie brak GameObjecr Main Camera");
            }
            cameraController=mainCamera.GetComponent<CameraController>();
            if (cameraController == null) {
                throw new MissingReferenceException("Main Camera GameObject nie posiada komponentu CameraController");
            }
            cameraController.isEnable = false;

            finishTime = Time.realtimeSinceStartup + finalCountdown;
            actualCountdown = (int)finishTime;

            bitmapText = new BitmapText ();
            bitmapText.setTextures (this.GetController().GetGuiAssets().digitsB);
            bitmapScore = new BitmapText ();
            bitmapScore.setTextures (this.GetController().GetGuiAssets().digitsB);

            boardObject = GameObject.Find ("Board");
            if (boardObject == null) {
                throw new MissingReferenceException("Scena nie posiada Board GameObject");
            }
            blockController=boardObject.GetComponent<BlockController>();
            if (blockController == null) {
                throw new MissingReferenceException("Board GameObject nie posiada komponentu BlockController");
            }

            playerObject = GameObject.Find ("Player");
            if (playerObject == null) {
                throw new MissingReferenceException("Scena nie posiada PLayer GameObject");
            }
            playerController=playerObject.GetComponent<PlayerController>();
            if (playerController == null) {
                throw new MissingReferenceException("Player GameObject nie posiada komponentu PlayerController");
            }
            blockController.TurnOff ();
            actualCountdown = (int)finishTime;

            //		playerObject.transform.position=new Vector3(0,4,0);
        }
 public override void StartState()
 {
     Time.timeScale = 0;
     GameObject playerObject = GameObject.Find ("Player");
     if(playerObject==null){
         throw new MissingReferenceException("Brakuje GameObject Player");
     }
     playerController=playerObject.GetComponent<PlayerController>();
     playerController.enableInput = false;
     playerController.isEnable=false;
     AudioSource music = GameObject.Find ("Main Camera").GetComponent<AudioSource>();
     music.volume = 0.1f;
     boardObject = GameObject.Find ("Board");
     if (boardObject == null) {
         throw new MissingReferenceException("Scena nie posiada Board GameObject");
     }
     blockController=boardObject.GetComponent<BlockController>();
     if (blockController == null) {
         throw new MissingReferenceException("Board GameObject nie posiada komponentu BlockController");
     }
     this.GetController ().GetAd ().ShowBanner ();
 }