예제 #1
0
    void Start()
    {
        waveInfo    = FindObjectOfType <WaveMenu>();
        soundVolume = FindObjectOfType <MainMenu>().soundsValue;

        SetSpawningPositions();

        StartCoroutine(SpawnEnemy(1));
    }
    // Use this for initialization
    void Start()
    {
        MiscSpawner();
        zombieSpawn = 5.0f;
        Grid        = GameObject.FindGameObjectWithTag("Grid");
        waveMenu    = GameObject.FindGameObjectWithTag("WaveMenu").GetComponent <WaveMenu>();
        ShopButton.onClick.AddListener(delegate { IsClicked(); });

        Player = Instantiate(PlayerPrefab, Base.transform.position, Base.transform.rotation);
        NewPlayer();
        EGameState = GameState.Play;
        StartCoroutine(StateEnumerator());
    }