Exemplo n.º 1
0
        private void Start()
        {
            _livesManager = LivesManager.Instance;

            _livesManager.TimerPerSecondCallback += UpdateTimer;
            _livesManager.LivesChangedCallback   += UpdateLives;

            UpdateLives();
            UpdateTimer();
        }
Exemplo n.º 2
0
        private void Start()
        {
            _livesManager = LivesManager.Instance;

            _livesManager.TimerPerSecondCallback += UpdateTimer;
            _livesManager.LivesChangedCallback   += UpdateLives;

            EventDelegate.Add(useButton.onClick, _livesManager.UseLife);
            EventDelegate.Add(refillButton.onClick, _livesManager.RefillLives);

            UpdateLives();
            UpdateTimer();
        }