// 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; }