void Awake()
 {
     instantiator = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     deleteJewels = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     startingLeftJewelPosition = -2.45f;
     horizontalMultiplier      = .6125f;
 }
    // Use this for initialization
    void Start()
    {
        bombHandler     = GameObject.Find("Level Controller").GetComponent <RockLevelBombHandler> ();
        touchHandler    = GameObject.Find("Level Controller").GetComponent <RockLevelTouchHandler> ();
        movementChecker = GameObject.Find("Level Controller").GetComponent <RockLevelMovementChecker> ();
        soundHandler    = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
        instantiator    = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();

//		timeCountdown1 = GameObject.Find ("Time Countdown 1");
//		spriteRenderer1 = timeCountdown1.GetComponent<SpriteRenderer> ();
//
//		timeCountdown2 = GameObject.Find ("Time Countdown 2");
//		spriteRenderer2 = timeCountdown2.GetComponent<SpriteRenderer> ();
//
//		timeCountdown3 = GameObject.Find ("Time Countdown 3");
//		spriteRenderer3 = timeCountdown3.GetComponent<SpriteRenderer> ();
//
//		timeBombScreenList = new List<GameObject> ();
//		timeScreenRenderers = GameObject.Find ("Time Bomb Level Screen").GetComponentsInChildren<SpriteRenderer> ();
//		alphaIncrease = .03f;
//		increaseAlpha = true;
//		cooldown = 1;
//		timeStamp = Time.time;
//		playSound = true;
        timeStamp = Time.time;
        cooldown  = 1;
    }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     soundHandler          = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     jewel1                = null;
     jewel2                = null;
     startSwap             = false;
     swapJewelsBack        = false;
     instantiator          = gameObject.GetComponent <RockLevelInstantiator> ();
     checkForMatches       = gameObject.GetComponent <RockLevelCheckForMatches> ();
     bombHandler           = gameObject.GetComponent <RockLevelBombHandler> ();
     stoppedMoving         = gameObject.GetComponent <RockLevelMovementChecker> ();
     deleteJewels          = gameObject.GetComponent <RockLevelDeleteJewels> ();
     touchHandler          = gameObject.GetComponent <RockLevelTouchHandler> ();
     timeBombLevel         = (GameObject.Find("Time Bomb Identification") != null);
     translationMultiplier = .35f;
     distanceToTarget      = .01f;
     firstSwapPerformed    = false;
     if (GameObject.Find("Mountain Level Two ID") != null)
     {
         tutorialLevel2 = true;
     }
     if (GameObject.Find("Jewel Collection Level ID") != null)
     {
         jewelCollectorLevel = true;
         moveNumberHandler   = GameObject.Find("Jewel Collector").GetComponent <MoveNumberHandler> ();
     }
 }
 // Use this for initialization
 void Start()
 {
     GetComponent <Rigidbody2D>().AddTorque(-540);
     deleteList     = new HashSet <GameObject> ();
     deleteJewels   = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     instantiator   = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     fourInARow     = GameObject.Find("Level Controller").GetComponent <RockLevelFourInARow> ();
     scoreKeeper    = GameObject.Find("Level Controller").GetComponent <RockLevelScoreKeeper> ();
     jewelToDestroy = instantiator.GetJewelGridGameObject(targetJewelRow, targetJewelCol);
     controller     = GameObject.Find("Level Controller").GetComponent <RockLevelController> ();
     audioSources   = GameObject.Find("SoundHandler").GetComponents <AudioSource>();
     soundHandler   = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     swapJewel      = GameObject.Find("Level Controller").GetComponent <RockLevelSwapJewel> ();
     if (tag != "End Star")
     {
         instantiatedCrosshairs = (GameObject)Instantiate(crosshairs, new Vector3(-2.45f + (targetJewelCol * .6125f), 2.591252f - (targetJewelRow * .6097268f), -90), Quaternion.identity);
         targetPosition         = instantiatedCrosshairs.transform.position;
     }
     else
     {
         targetPosition = new Vector3(-2.45f + (targetJewelCol * .6125f), 2.591252f - (targetJewelRow * .6097268f), -90);
     }
     timeStamp = Time.time;
     cooldown1 = .25f;
     cooldown2 = .15f;
     if (transform.position.y > -.5)
     {
         oppositeY = Random.Range(4f, 4.5f);
     }
     else
     {
         oppositeY = Random.Range(-4f, -4.65f);
     }
     oppositeX = Random.Range(-2.5f, 2.5f);
 }
 // Use this for initialization
 void Start()
 {
     cooldown       = .1f;
     childStarCount = 0;
     GetChildStar();
     instantiator = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     GetComponent <Rigidbody2D>().AddTorque(540);
     deleteJewels = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     touchHandler = GameObject.Find("Level Controller").GetComponent <RockLevelTouchHandler> ();
     fiveInARow   = GameObject.Find("Level Controller").GetComponent <RockLevelFiveInARow> ();
     powerPercentageController = GameObject.Find("Level Controller").GetComponent <PowerPercentageController> ();
     soundHandler = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     bombHandler  = GameObject.Find("Level Controller").GetComponent <RockLevelBombHandler> ();
     if (GameObject.Find("Mountain Level Two ID") != null)
     {
         tutorialLevel = true;
     }
     tutorialNumber = 0;
     jewelList      = new List <GameObject> ();
     jewelPicked    = false;
     //		targetX = Random.Range (-2f, 2f);
     //		targetY = 4.5f;
     targetX        = transform.position.x;
     targetY        = transform.position.y;
     childStarArray = new List <GameObject> ();
 }
 // Use this for initialization
 void Start()
 {
     instantiator    = gameObject.GetComponent <RockLevelInstantiator> ();
     deleteJewels    = gameObject.GetComponent <RockLevelDeleteJewels> ();
     controller      = gameObject.GetComponent <RockLevelController> ();
     swapJewel       = gameObject.GetComponent <RockLevelSwapJewel> ();
     checkForMatches = gameObject.GetComponent <RockLevelCheckForMatches> ();
 }
Exemple #7
0
 // Use this for initialization
 void Start()
 {
     instantiator = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     deleteJewels = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     fiveInARow   = GameObject.Find("Level Controller").GetComponent <RockLevelFiveInARow> ();
     swapJewel    = GameObject.Find("Level Controller").GetComponent <RockLevelSwapJewel> ();
     deleteList   = new HashSet <GameObject> ();
     GetComponent <Rigidbody2D>().AddTorque(540);
 }
Exemple #8
0
 // Use this for initialization
 void Start()
 {
     scoreKeeper          = gameObject.GetComponent <LevelTwoScoreKeeper> ();
     instantiator         = gameObject.GetComponent <RockLevelInstantiator> ();
     touchHandler         = gameObject.GetComponent <RockLevelTouchHandler> ();
     deleteJewels         = gameObject.GetComponent <RockLevelDeleteJewels> ();
     cornerJewelDestroyed = false;
     cornerStarList       = new List <GameObject> ();
 }
Exemple #9
0
 // Use this for initialization
 void Start()
 {
     instantiateOwlie = true;
     spriteRenderer   = gameObject.GetComponent <SpriteRenderer> ();
     touchHandler     = GameObject.Find("Level Controller").GetComponent <RockLevelTouchHandler> ();
     matchChecker     = GameObject.Find("Level Controller").GetComponent <RockLevelCheckForMatches> ();
     instantiator     = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     oldColor         = spriteRenderer.color;
     cooldown         = 8;
 }
 // Use this for initialization
 void Start()
 {
     instantiator    = gameObject.GetComponent <RockLevelInstantiator> ();
     checkForMatches = gameObject.GetComponent <RockLevelCheckForMatches> ();
     movementChecker = gameObject.GetComponent <RockLevelMovementChecker> ();
     touchHandler    = gameObject.GetComponent <RockLevelTouchHandler> ();
     noMatchChecker  = gameObject.GetComponent <RockLevelNoMatchChecker> ();
     swapJewel       = gameObject.GetComponent <RockLevelSwapJewel> ();
     cooldown        = 2f;
     shuffleFinished = true;
 }
Exemple #11
0
    // Use this for initialization

    void Awake()
    {
        Debug.Log("THREE FAILS SHADE ONE CONTROLLER START() METHOD");
        GameObject.Find("Game Manager").GetComponent <OwliePowerUpTutorialController> ().SetPlayedTutorialTrue();
        instantiateOwlie = true;
        spriteRenderer   = gameObject.GetComponent <SpriteRenderer> ();
        touchHandler     = GameObject.Find("Level Controller").GetComponent <RockLevelTouchHandler> ();
        matchChecker     = GameObject.Find("Level Controller").GetComponent <RockLevelCheckForMatches> ();
        instantiator     = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
        oldColor         = spriteRenderer.color;
        cooldown         = 3;
    }
Exemple #12
0
 // Use this for initialization
 void Start()
 {
     instantiator    = gameObject.GetComponent <RockLevelInstantiator> ();
     shuffle         = gameObject.GetComponent <RockLevelShuffleGameBoard> ();
     bombHandler     = gameObject.GetComponent <RockLevelBombHandler> ();
     noMatchesSlider = GameObject.Find("No Matches Banner").GetComponent <NoMatchesSlider> ();
     matchList       = new HashSet <GameObject> ();
     if (GameObject.Find("Jewel Collector") != null)
     {
         jewelCollectorLevel = true;
     }
 }
 // Use this for initialization
 void Start()
 {
     GetComponent <Rigidbody2D>().AddForce(new Vector2(0, 2500));
     if (tag != "Bomb")
     {
         GetComponent <Rigidbody2D>().AddTorque(-540f);
     }
     instantiator = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     deleteJewels = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     soundHandler = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     targetRow    = Random.Range(0, 9);
     targetCol    = Random.Range(0, 9);
 }
Exemple #14
0
 // Use this for initialization
 void Start()
 {
     instantiator       = gameObject.GetComponent <RockLevelInstantiator> ();
     matchList          = new HashSet <GameObject> ();
     secondaryMatchList = new HashSet <GameObject> ();
     bounceForce        = new Vector2(0, 300);
     resetRandoms       = true;
     gameStarted        = true;
     if (GameObject.Find("Mountain Level One ID") != null || GameObject.Find("Mountain Level Two ID") != null || GameObject.Find("Mountain Level Three ID") || GameObject.Find("Mountain Level Four ID") ||
         GameObject.Find("Mountain Level Ten ID") != null || GameObject.Find("Cabin Level Two ID") != null)
     {
         tutorialLevel = true;
     }
 }
 // Use this for initialization
 void Start()
 {
     instantiator    = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     deleteJewels    = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     row             = Random.Range(1, 8);
     col             = Random.Range(1, 8);
     targetJewel     = instantiator.GetJewelGridGameObject(row, col);
     targetPositon   = new Vector3(startingLeftJewelPosition + (horizontalMultiplier * col), 2.591258f - (.61f * row), (-1 * row) - 2);
     targetXPosition = targetPositon.x;
     targetYPosition = targetPositon.y;
     rigidBody       = GetComponent <Rigidbody2D> ();
     rigidBody.AddForce(new Vector2(0, 1000));
     rigidBody.AddTorque(Random.Range(-10000, 10000));
 }
 // Use this for initialization
 void Start()
 {
     starShotCount           = 0;
     timeStamp               = Time.time;
     cooldown                = .125f;
     endOfLevelCooldown      = .75f;
     bombRemainderController = gameObject.GetComponent <LevelTwoBombRemainderController> ();
     instantiator            = gameObject.GetComponent <RockLevelInstantiator> ();
     starStartingPosition    = new Vector3(-2.25f, -2.9f, -19);
     stoppedMoving           = gameObject.GetComponent <RockLevelMovementChecker> ();
     deleteJewels            = gameObject.GetComponent <RockLevelDeleteJewels> ();
     scoreKeeper             = gameObject.GetComponent <RockLevelScoreKeeper> ();
     soundHandler            = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     checkForMatches         = gameObject.GetComponent <RockLevelCheckForMatches> ();
     starLaunchCount         = 0;
 }
Exemple #17
0
 // Use this for initialization
 void Start()
 {
     deleteList     = new HashSet <GameObject> ();
     deleteRowArray = new GameObject[9];
     //Debug.Log ("deleteRowArray.Length = " + deleteRowArray.Length);
     GetComponent <Rigidbody2D>().AddTorque(-540);
     instantiator   = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     deleteJewels   = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
     soundHandler   = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     directionInt   = Random.Range(0, 4);
     targetJewelRow = Random.Range(0, 9);
     targetJewelCol = Random.Range(0, 9);
     while (instantiator.GetJewelGridGameObject(targetJewelRow, targetJewelCol).GetComponent <RockLevelJewelMovement> ().GetMoving())
     {
         targetJewelRow = Random.Range(0, 9);
         targetJewelCol = Random.Range(0, 9);
     }
     GetInitialPosition();
     moveToInitialPosition = true;
 }
Exemple #18
0
 // Use this for initialization
 void Start()
 {
     instantiator              = gameObject.GetComponent <RockLevelInstantiator> ();
     checkForMatches           = gameObject.GetComponent <RockLevelCheckForMatches> ();
     touchHandler              = gameObject.GetComponent <RockLevelTouchHandler> ();
     controller                = gameObject.GetComponent <RockLevelController> ();
     deleteJewels              = gameObject.GetComponent <RockLevelDeleteJewels> ();
     scoreKeeper               = gameObject.GetComponent <LevelTwoScoreKeeper> ();
     movementChecker           = gameObject.GetComponent <RockLevelMovementChecker> ();
     bombHandler               = gameObject.GetComponent <RockLevelBombHandler> ();
     powerPercentageController = gameObject.GetComponent <PowerPercentageController> ();
     homingStarList            = new List <GameObject> ();
     targetJewels              = new HashSet <GameObject> ();
     audioSources              = GameObject.Find("SoundHandler").GetComponents <AudioSource> ();
     tutorialCount             = 0;
     tutorial2Count            = 0;
     if (GameObject.Find("Mountain Level Two ID") != null)
     {
         tutorialLevel2 = true;
     }
 }
Exemple #19
0
 // Use this for initialization
 void Start()
 {
     instantiator               = gameObject.GetComponent <RockLevelInstantiator> ();
     deleteList                 = new HashSet <GameObject> ();
     horizontalDeleteList       = new HashSet <GameObject> ();
     verticalDeleteList         = new HashSet <GameObject> ();
     horizontalSetArray         = new HashSet <GameObject> [4];
     verticalSetArray           = new HashSet <GameObject> [4];
     jewelsThatActivatedCorners = new List <GameObject> ();
     dontDelete                 = false;
     exitMatchCheck             = false;
     powersActivated            = false;
     deleteJewels               = gameObject.GetComponent <RockLevelDeleteJewels> ();
     //		moveJewelsDown = GameObject.Find ("Level One Controller").GetComponent<MoveJewelsDown> ();
     corners      = gameObject.GetComponent <RockLevelCorners> ();
     fiveInARow   = gameObject.GetComponent <RockLevelFiveInARow> ();
     scoreKeeper  = gameObject.GetComponent <LevelTwoScoreKeeper> ();
     soundHandler = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     swapJewel    = gameObject.GetComponent <RockLevelSwapJewel> ();
     gameStarted  = false;
 }
 // Use this for initialization
 void Start()
 {
     rockLevelController = gameObject.GetComponent <RockLevelController> ();
     instantiator        = gameObject.GetComponent <RockLevelInstantiator> ();
     checkForMatches     = rockLevelController.GetComponent <RockLevelCheckForMatches> ();
     instantiator        = rockLevelController.GetComponent <RockLevelInstantiator> ();
     bombHandler         = rockLevelController.GetComponent <RockLevelBombHandler> ();
     starShooter         = gameObject.GetComponent <RockLevelStarShooter> ();
     //		remainderController = levelThreeController.GetComponent<LevelThreeBombRemainderController> ();
     touchHandler    = rockLevelController.GetComponent <RockLevelTouchHandler> ();
     fourInARow      = gameObject.GetComponent <RockLevelFourInARow> ();
     fiveInARow      = gameObject.GetComponent <RockLevelFiveInARow> ();
     corners         = gameObject.GetComponent <RockLevelCorners> ();
     noMatchChecker  = gameObject.GetComponent <RockLevelNoMatchChecker> ();
     shuffle         = gameObject.GetComponent <RockLevelShuffleGameBoard> ();
     soundController = gameObject.GetComponent <SoundController> ();
     deleteJewels    = gameObject.GetComponent <RockLevelDeleteJewels> ();
     if (GameObject.Find("Mountain Level One ID") != null)
     {
         tutorialLevel = true;
     }
 }
 // Use this for initialization
 void Start()
 {
     if (name == "Slug(Clone)")
     {
         currentBoulder = boulder;
     }
     else if (name == "Slug Stage 2(Clone)")
     {
         currentBoulder = boulderStage2;
     }
     else if (name == "Slug Stage 3(Clone)")
     {
         currentBoulder = boulderStage3;
     }
     else if (name == "Slug Stage 4(Clone)")
     {
         currentBoulder = boulderStage4;
     }
     instantiator  = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
     jewelMovement = gameObject.GetComponent <RockLevelJewelMovement> ();
     swapJewel     = GameObject.Find("Level Controller").GetComponent <RockLevelSwapJewel> ();
 }
Exemple #22
0
 // Use this for initialization
 void Start()
 {
     instantiator = gameObject.GetComponent <RockLevelInstantiator> ();
     if (levelNumber >= 1 && levelNumber < 31)
     {
         instantiator.InstantiateMountainJewels(levelNumber - 1);
     }
     if (levelNumber > 30 && levelNumber < 61)
     {
         instantiator.InstantiateCityJewels(levelNumber - 31);
     }
     if (levelNumber > 60 && levelNumber < 91)
     {
         instantiator.InstantiateCabinJewels(levelNumber - 61);
     }
     if (levelNumber > 90 && levelNumber < 121)
     {
         instantiator.InstantiateLaunchpadJewels(levelNumber - 91);
     }
     instantiatedTutorialShade = (GameObject)Instantiate(levelSlide);
     currentTutorialShade      = instantiatedTutorialShade;
 }
Exemple #23
0
    // Use this for initialization
    void Start()
    {
        instantiator       = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();
        deleteJewels       = GameObject.Find("Level Controller").GetComponent <RockLevelDeleteJewels> ();
        moveJewelsDown     = GameObject.Find("Level Controller").GetComponent <RockLevelMoveJewelsDown> ();
        corners            = GameObject.Find("Level Controller").GetComponent <RockLevelCorners> ();
        touchHandler       = GameObject.Find("Level Controller").GetComponent <RockLevelTouchHandler> ();
        levelOneController = GameObject.Find("Level Controller").GetComponent <RockLevelController> ();
        soundHandler       = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
        if (horizontalPositive)
        {
            oppositeX = transform.position.x - 1;
            oppositeY = transform.position.y;
        }
        else if (horizontalNegative)
        {
            oppositeX = transform.position.x + 1;
            oppositeY = transform.position.y;
        }
        else if (verticalPositive)
        {
            oppositeY = transform.position.y - 1;
            oppositeX = transform.position.x;
        }
        else if (verticalNegative)
        {
            oppositeY = transform.position.y + 1;
            oppositeX = transform.position.x;
        }

        jewelDeletedCounter = 0;
        arrayCount          = 0;
        soundNumber         = 0;
        GetComponent <Rigidbody2D>().AddTorque(540);
        deleteList    = new HashSet <GameObject> ();
        timeForDelete = true;
        cooldown      = .5f;
    }
Exemple #24
0
    void MakeJewelsBounce()
    {
        RockLevelInstantiator instantiator = GameObject.Find("Level Controller").GetComponent <RockLevelInstantiator> ();

        GameObject             a             = instantiator.GetJewelGridGameObject(4, 2);
        RockLevelJewelMovement jewelMovement = a.GetComponent <RockLevelJewelMovement> ();

        a.GetComponent <Rigidbody2D>().AddForce(new Vector2(0, 300));
        jewelMovement.SetBounceAgain(true);
        jewelMovement.SetBounced(false);

        a             = instantiator.GetJewelGridGameObject(3, 3);
        jewelMovement = a.GetComponent <RockLevelJewelMovement> ();
        a.GetComponent <Rigidbody2D>().AddForce(new Vector2(0, 300));
        jewelMovement.SetBounceAgain(true);
        jewelMovement.SetBounced(false);

        a             = instantiator.GetJewelGridGameObject(4, 4);
        jewelMovement = a.GetComponent <RockLevelJewelMovement> ();
        a.GetComponent <Rigidbody2D>().AddForce(new Vector2(0, 300));
        jewelMovement.SetBounceAgain(true);
        jewelMovement.SetBounced(false);
    }
 void Awake()
 {
     bounceForce            = new Vector2(0, 300);
     cooldown               = .01f;
     floatingJewelCooldown  = 5;
     floatingJewelTimestamp = Time.time;
     moving = true;
     SetDestroyNumber();
     rocksToBeDestroyed = new HashSet <GameObject> ();
     controller         = GameObject.Find("Level Controller").GetComponent <RockLevelController> ();
     //		movementChecker = GameObject.Find ("Level Three Controller").GetComponent<LevelThreeJewelsStoppedMoving> ();
     checkForMatch    = controller.GetComponent <RockLevelCheckForMatches> ();
     touchHandler     = controller.GetComponent <RockLevelTouchHandler> ();
     soundController  = controller.GetComponent <SoundController> ();
     instantiator     = controller.GetComponent <RockLevelInstantiator> ();
     deleteJewels     = controller.GetComponent <RockLevelDeleteJewels> ();
     starShooter      = controller.GetComponent <RockLevelStarShooter> ();
     bounceNumber     = 0;
     firstBounce      = true;
     gameManager      = GameObject.Find("Game Manager").GetComponent <GameManagerScript> ();
     shuffleGameboard = controller.GetComponent <RockLevelShuffleGameBoard> ();
     swapJewel        = controller.GetComponent <RockLevelSwapJewel> ();
 }
    // Use this for initialization
    void Start()
    {
        deleteAgain       = false;
        fourInARow        = false;
        explosionsOn      = true;
        bombNumber        = 8;
        deleteCount       = 0;
        zPosition         = -30;
        deleteListCopy    = new HashSet <GameObject> ();
        boulderDeleteList = new HashSet <GameObject> ();
        floatingJewelList = new HashSet <GameObject> ();
        moveJewelsDown    = gameObject.GetComponent <RockLevelMoveJewelsDown> ();
        instantiator      = gameObject.GetComponent <RockLevelInstantiator> ();
        controller        = gameObject.GetComponent <RockLevelController> ();
        touchHandler      = gameObject.GetComponent <RockLevelTouchHandler> ();
        //		tutorialTouchHandler = gameObject.GetComponent<LevelTwoTutorialTouchHandler> ();
        checkForMatches  = gameObject.GetComponent <RockLevelCheckForMatches> ();
        bombHandler      = gameObject.GetComponent <RockLevelBombHandler> ();
        matchAssistant   = gameObject.GetComponent <RockLevelMatchAssistant> ();
        fourInARowScript = gameObject.GetComponent <RockLevelFourInARow> ();
        //		corners = GameObject.Find ("Level One Controller").GetComponent<LevelOneCorners> ();
        scoreKeeper     = gameObject.GetComponent <RockLevelScoreKeeper> ();
        movementChecker = gameObject.GetComponent <RockLevelMovementChecker> ();
        noMatchChecker  = gameObject.GetComponent <RockLevelNoMatchChecker> ();
        starShooter     = gameObject.GetComponent <RockLevelStarShooter> ();
        if (GameObject.Find("Jewel Collector") != null)
        {
            endOfLevelJewelSprayer = GameObject.Find("Jewel Collector").GetComponent <EndOfLevelCollectionJewelShooter> ();
        }
        soundHandler            = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
        boulderHolder           = new List <PositionHolder> ();
        targetStaticBlueJewel   = GameObject.Find("Static Jewel Four");
        targetStaticGreenJewel  = GameObject.Find("Static Jewel Three");
        targetStaticOrangeJewel = GameObject.Find("Static Jewel Six");
        targetStaticPurpleJewel = GameObject.Find("Static Jewel Five");
        targetStaticRedJewel    = GameObject.Find("Static Jewel Two");
        targetStaticWhiteJewel  = GameObject.Find("Static Jewel One");

//		if (GameObject.Find ("Time Bomb ID") != null)
//			decreaseBombs = GameObject.Find ("Time Bomb ID").GetComponent<DecreaseBombs> ();
        timeStamp           = Time.time;
        assistanceTimeStamp = Time.time;
        testTimeStamp       = Time.time;
        swapMadeTimestamp   = Time.time;
        swapMadeCoodown     = .1f;
//		okayToMoveTimeStamp = Time.time;
//		okayToMoveCooldown = .1f;
        assistanceCooldown    = 7f;
        powerTrackerTimestamp = Time.time;
        powerTrackerCooldown  = 5;
        cooldown         = 1.5f;
        shadeCount       = 0;
        noMatchCount     = 0;
        deletedPositions = new List <PositionHolder> ();
        if (GameObject.Find("Mountain Level One ID") != null)
        {
            tutorialLevel1 = true;
        }
        else if (GameObject.Find("Mountain Level Two ID") != null)
        {
            tutorialLevel2 = true;
        }
        else if (GameObject.Find("Mountain Level Three ID") != null)
        {
            tutorialLevel3 = true;
        }
        else if (GameObject.Find("Cabin Level Two ID") != null)
        {
            tutorialLevel4 = true;
        }
        startingLeftJewelPosition = -2.415f;
        horizontalMultiplier      = .6125f;
    }