Esempio n. 1
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);
 }