using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SpawnEnemiesByStages : MonoBehaviour {

    public static SpawnEnemiesByStages instance;

    [SerializeField]
    public Text stageText, scoreText;

    public GameObject panel;

    public GameObject spawnStage1;

    private float timeToSpawnStage1 = 1f;
    
    private float timer;
	
	void Start () {
        timer = Time.time;
	}
	
	void Update () {
        float t = Time.time - timer;

        if (t >= timeToSpawnStage1) {
           spawnStage1.SetActive(true);
        }        
    }
}
