/// <summary> /// On Match Score Detected /// </summary> void HandleQualityManagerMatchScoreDetected(object sender, MatchScoreEventArgs e) { Cubes++; CubeText.Text = Cubes.ToString(); CenterCubeScoreText(CubeText, CUBES_TEXT_POS); EventHandler handler = CubesUpdated; if ( handler != null ) { handler( this, null ); } ScheduleScoreModifier( e.Points ); new ScorePopup( e.Node, e.Points ); // Strikes.Hope(); }
protected override void HandleQualityManagerMatchScoreDetected(object sender, MatchScoreEventArgs e) { if (GameScene.currentLevel == 999) { _barAdjustment += this._maxTime / (cubeGoal-1.0f); } }
// EVENT HANDLERS -------------------------------------------------- protected virtual void HandleQualityManagerMatchScoreDetected(object sender, MatchScoreEventArgs e) { // TODO SOMETHING SPECIFIC TO THE CURRENT DIFFICULTY LEVEL IN INFINITE MODE if (GameScene.currentLevel == 999) { // _barAdjustment += 10.0f; } }
void HandleAbstractQualityMatchScoreDetected(object sender, MatchScoreEventArgs e) { ScoreText.Text = e.Points.ToString(); Sequence sequence = new Sequence(); // sequence.Add ( new MoveBy( new Vector2(0.0f, 100.0f), 3.0f ) ); // sequence.Add( new DelayTime( 3.0f ) ); sequence.Add ( new CallFunc( () => { ScoreText.Visible = false; this.Dispose(); } ) ); ScoreLabel.RunAction(sequence); }