Example #1
0
    void Start()
    {
        m_preTimeText = m_preTimeObject.GetComponent <Text>();
        m_waveText    = m_waveObject.GetComponent <Text>();
        m_eneGene     = GameObject.Find("EnemyGenerator");
        EnemyGenerator e = m_eneGene.GetComponent <EnemyGenerator>();

        m_eneGeneIndex = e.GetLengthWave();
        audioSource    = GetComponent <AudioSource>();
        SetNowState(GameState.Start);
    }