// Use this for initialization void Start() { BeatScrCall = BeatObjCall.GetComponent <RhythmCore> (); sControlScript = sControlObject.GetComponent <SpriteControllerSprite> (); lightControlScript = lightControllerObject.GetComponent <LightControlMG2Script> (); }
// Use this for initialization void Start() { callSpriteBoss = GameObject.FindGameObjectWithTag("SpriteController"); callSprScr = callSpriteBoss.GetComponent <SpriteControllerSprite> (); sceneBoss = GameObject.FindGameObjectWithTag("GameController"); sceneControl = sceneBoss.GetComponent <GameBossCode> (); soundObj = GameObject.FindGameObjectWithTag("SoundControllerTag"); soundScr = soundObj.GetComponent <SoundScript> (); arrowScr = arrowObj.GetComponent <ArrowTurnScript>(); //If it isn't level 2 or 3, get the arrow's script of the friend. if (nameOfLevel != LEVEL_2D_NAMES.STAGE_2 || nameOfLevel != LEVEL_2D_NAMES.STAGE_3) { arrowScrFrd = arrowObjFriend.GetComponent <ArrowTurnScript> (); } //If the level isn't stage one... //Set these null. if (nameOfLevel != LEVEL_2D_NAMES.STAGE_1) { classMoveObject_LoseObject = null; loseScriptCall = null; } else { loseScriptCall = classMoveObject_LoseObject.GetComponent <MG1LoseScript> (); } // Main Menu Manager //MM = GameObject.FindGameObjectWithTag ("MManager").GetComponent<MainMenuManager> (); //If the enum of nameOfLevel is STAGE_2, then it sets the rhythm object. if (nameOfLevel == LEVEL_2D_NAMES.STAGE_2) { rhyGObj = GameObject.FindGameObjectWithTag("RhythmTag"); rhyScr = rhyGObj.GetComponent <RhythmCore>(); } }