public void RestartGame() { // Disables game over screen uiUpdater.DisableCanvas(); // Resets and starts target spawner targetSpawner.ResetAndStartSpawner(); }
private void Start() { uiUpdater = FindObjectOfType <UIUpdater>(); targetSpawner = FindObjectOfType <TargetSpawner>(); uiUpdater.DisableCanvas(); }