public void SpawnNextArea() { Area nextArea = areasManager.GetArea(); nextArea.Respawn(nextAreaSpawnPoint.position); nextIsSpawned = true; }
private void Start() { areasManager.GetArea().Respawn(transform.position); Destroy(gameObject); }