public void Initialize(ChromaTowerRenderer towerRenderer) { ChromaTower tower = towerRenderer.tower; towerRenderer.OnBallColorUpdate += UpdateGradient; tower.OnGameOver += () => { UpdateGradient(Color.black); }; }
public void Initialize(ChromaTowerRenderer towerRenderer) { ChromaTower tower = towerRenderer.tower; difficulty = tower.difficulty; towerRenderer.OnBallColorUpdate += GetBallColor; tower.OnSuccessfulHit += SuccessVignette; tower.OnNewGame += () => { Hide(true); }; tower.OnDamage += DamageFlash; }
public void AttachTower(ChromaTowerRenderer tower) { this.tower = tower; }