Ejemplo n.º 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>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start () {
     partyNote = GameObject.Find("PartyNote");
     parent = GameObject.Find("PartyNote").transform;
     //GameControlerのCharaStatusスクリプトを取得
     GameControler = GameObject.Find("GameControler");
     CharaStatus = GameControler.GetComponent<Charastatus>();
     noteFrequency = GetComponent<NoteFrequency>();
 }
Ejemplo n.º 3
0
 private void Start()
 {
     objectName     = this.gameObject.name;
     Gamecontroler  = GameObject.Find("GameControler");
     charastatus    = Gamecontroler.GetComponent <Charastatus>();
     noteSpeed      = NoteSpeeds();
     gameControler  = Gamecontroler.GetComponent <GameControler>();
     spriteRenderer = this.gameObject.GetComponent <SpriteRenderer>();
     note           = GameObject.Find("PartyNote");
     noteFrequency  = note.GetComponent <NoteFrequency>();
 }
Ejemplo n.º 4
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>();
    }