示例#1
0
 protected void fruitDead(FruitGameObject deadBonusObject)
 {
     this.decRage();
     this.currentScore += deadBonusObject.getFruitDeathPoints();
     if (this.currentScore < 0)
     {
         this.currentScore = 0;
     }
 }
示例#2
0
 protected void fruitCollected(FruitGameObject collectedBonusObject)
 {
     this.currentScore += collectedBonusObject.getFruitCollectionPoints();
 }