Esempio n. 1
0
 void Start()
 {
     EventsManager.AddPointsListener(increaseScore);
     EventsManager.AddremainListener(subtractBalls);
     scoreText.text    = "Score: " + totalScore;
     remainText.text   = "Remaining Rocks: " + remainBalls;
     HammerBtn.enabled = false;
     AxeBtn.enabled    = false;
 }
Esempio n. 2
0
 private void Start()
 {
     //Set starting values
     actualBallsLeft = ConfigurationUtils.AmountBalls;
     SetBallsLeft(actualBallsLeft);
     AddScore(-actualScore);
     //Become listener to add points
     EventsManager.AddPointsListener(AddScore);
     //Become listener to reduce balls left
     EventsManager.AddReduceBallsLeftListener(RemoveBallFromLeft);
     //Become invoker for LastBallLost
     EventsManager.AddLastBallLostInvoker(lastBallLost);
 }