示例#1
0
        public void Initialize(ChromaTowerRenderer towerRenderer)
        {
            ChromaTower tower = towerRenderer.tower;

            towerRenderer.OnBallColorUpdate += UpdateGradient;
            tower.OnGameOver += () => { UpdateGradient(Color.black); };
        }
示例#2
0
        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;
        }
示例#3
0
 public void AttachTower(ChromaTowerRenderer tower)
 {
     this.tower = tower;
 }