Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        gameControler = GetComponent <GameControler>();

        //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>();
        //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>();
        if (BattleManager.Instance.nowBattleScene == 0)
        {
            return;
        }

        countDown = countDownText.GetComponent <CountDown>();
        StartCoroutine(countDown.CountdownCoroutine());

        tokagePlayMovie  = tokageEF.GetComponent <PlayMovie>();
        datyoPlayMovie   = datyoEF.GetComponent <PlayMovie>();
        momongaPlayMovie = momongaEF.GetComponent <PlayMovie>();
        kamePlayMovie    = kameEF.GetComponent <PlayMovie>();
        enemyPlayMovie   = enemyEF.GetComponent <PlayMovie>();
    }