Beispiel #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>();
 }
Beispiel #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>();
 }
Beispiel #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>();
 }
Beispiel #4
0
    // Use this for initialization
    void Start()
    {
        enemyNote = GameObject.Find("EnemyNote");
        parent    = GameObject.Find("EnemyNote").transform;
        note1     = null; //GameObject.Find("enemyNote1");
        note2     = null; //GameObject.Find("enemyNote2");
        note3     = null; //GameObject.Find("enemyNote3");

        GameControler  = GameObject.Find("GameControler");
        GameControlers = GameControler.GetComponent <GameControler>();
        partyNote      = GameObject.Find("PartyNote");
        noteFrequency  = partyNote.GetComponent <NoteFrequency>();
    }
Beispiel #5
0
 private void Start()
 {
     objName   = this.gameObject.name;
     noteSpeed = NoteSpeeds();
     Debug.Log(noteSpeed);
     GameControler  = GameObject.Find("GameControler");
     gameControler  = GameControler.GetComponent <GameControler>();
     tinpan         = GameObject.Find("tinpan");
     animation      = tinpan.GetComponent <CharaAnimation>();
     spriteRenderer = this.gameObject.GetComponent <SpriteRenderer>();
     note           = GameObject.Find("PartyNote");
     noteFrequency  = note.GetComponent <NoteFrequency>();
 }
Beispiel #6
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>();
    }