Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     note      = GetComponent <note>();
     enemyNote = GameObject.Find("EnemyNote");
     enemynote = enemyNote.GetComponent <enemynote>();
     if (BattleManager.Instance.nowBattleScene == 0)
     {
         maxRenge     = 5;
         maxFrequency = 300;
     }
     else if (BattleManager.Instance.nowBattleScene == 1)
     {
         maxRenge     = 3;
         maxFrequency = 180;
     }
     else if (BattleManager.Instance.nowBattleScene == 2)
     {
         maxRenge     = 2;
         maxFrequency = 120;
     }
     NoteCreateFrequency("tokagenote");
     NoteCreateFrequency("datyonote");
     NoteCreateFrequency("kamenote");
     NoteCreateFrequency("momonganote");
     NoteCreateFrequency("enemyNote1");
     NoteCreateFrequency("enemyNote2");
     NoteCreateFrequency("enemyNote3");
 }
Ejemplo n.º 2
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>();
 }
Ejemplo n.º 3
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>();
    }