private ArrowTurnScript _mainArrowScript; // FORMERLY "arrowScr" void Start() { this._spriteControllerOBJECT = GameObject.FindGameObjectWithTag("SpriteController"); this._spriteControllerSCRIPT = this._spriteControllerOBJECT.GetComponent <SpriteControllerSprite>(); this._sceneChangeManagerOBJECT = GameObject.FindGameObjectWithTag("GameController"); this._sceneChangeManagerSCRIPT = this._sceneChangeManagerOBJECT.GetComponent <GameBossCode>(); this._soundControllerOBJECT = GameObject.FindGameObjectWithTag("SoundControllerTag"); this._soundControllerSCRIPT = this._soundControllerOBJECT.GetComponent <SoundScript>(); this._mainArrowScript = this.mainArrowObject.GetComponent <ArrowTurnScript>(); }
// 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>(); } }