Example #1
0
 void Awake()
 {
     partyNoteParent = GameObject.Find("PartyNote").transform;
     enemyNoteParent = GameObject.Find("EnemyNote").transform;
     //それぞれの変数にオブジェクトを格納する
     //enemySliderのhpスクリプトを取得
     notes = GameObject.Find("enemySlider");
     hp    = notes.GetComponent <hp>();
     //CharaStatusスクリプトを取得
     CharaStatus = GetComponent <Charastatus>();
     //partyNoteのnoteスクリプトを取得
     partyNote = GameObject.Find("PartyNote");
     note      = partyNote.GetComponent <note>();
     //Frequencyスクリプト取得
     noteFrequency = partyNote.GetComponent <NoteFrequency>();
     //TouchHanteiスクリプト取得
     touchHantei = GetComponent <TouchHantei>();
     //enemyNoteのenemynoteスクリプトを取得
     enemyNote = GameObject.Find("EnemyNote");
     enemynote = enemyNote.GetComponent <enemynote>();
     //ScenairoTextのScenarioTextスクリプトを取得
     text         = GameObject.Find("ScenarioText");
     scenarioText = text.GetComponent <ScenarioText>();
     //ScenarioCharaのScenarioCharaスクリプトを取得
     chara         = GameObject.Find("Image");
     scenarioChara = chara.GetComponent <ScinarioChara>();
     //BGMスタート
     audioSource = GetComponent <AudioSource>();
 }
Example #2
0
 private void Start()
 {
     touchHantei    = touch.GetComponent <TouchHantei>();
     Time.timeScale = 1;
     stop           = false;
     menuScreen.SetActive(false);
 }
Example #3
0
 private void Start()
 {
     tutorialFlag      = Flag.description;
     text              = scenarioText.GetComponent <ScenarioText>();
     tutorialControler = GetComponent <TutorialControler>();
     serectCircle      = SerectCircle.GetComponent <SerectCircle>();
     touchHantei       = GetComponent <TouchHantei>();
     Description(flags);
     note.datyoNote       = false;
     note.tokageNote      = false;
     note.momongaNote     = false;
     note.kameNote        = false;
     enemynote.enemyNote1 = false;
     enemynote.enemyNote2 = false;
     enemynote.enemyNote3 = false;
 }