private void Start() { DefenderSpawner defenderSpawner = FindObjectOfType <DefenderSpawner>(); onStarGeneration = defenderSpawner.getStarGenerationEvent(); }