Beispiel #1
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> ();
 }
 // Use this for initialization
 void Start()
 {
     touchHandler          = gameObject.GetComponent <RockLevelTouchHandler> ();
     levelThreeController  = gameObject.GetComponent <RockLevelController> ();
     stoppedMoving         = gameObject.GetComponent <RockLevelMovementChecker> ();
     scoreKeeper           = gameObject.GetComponent <LevelTwoScoreKeeper> ();
     deleteJewels          = gameObject.GetComponent <RockLevelDeleteJewels> ();
     soundHandler          = GameObject.Find("Game Manager").GetComponent <SoundHandler> ();
     motherStarList        = new List <GameObject> ();
     childStarList         = new List <GameObject> ();
     tutorialChildStarList = new List <GameObject> ();
 }
Beispiel #3
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;
 }
Beispiel #4
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;
     }
 }