示例#1
0
 public TimeScore(ScoreSubject scoreSub)
 {
     this.scoreSubject = scoreSub;
     this.scoreSubject.Attach(this);
     currentScore = this.scoreSubject.getScore();             // setting current score
 }
示例#2
0
		public PointScore (ScoreSubject scoreSub)
		{
			this.scoreSubject = scoreSub;
			this.scoreSubject.Attach (this);
			currentScore = this.scoreSubject.getScore(); // setting current score
		}