// Update is called once per frame void Update() { if (isReady && Input.GetKeyDown("e")) { mtext.enabled = false; isReady = false; waveGenerator.StartWave(); done = true; } }