void Start() { view = HudView.instance; view.UpdateFire(currentFire); PlayerParticleHandler.instance.onFireExtinct += IncreaseFire; PlayerDistanceController.instance.onIncreaseDistance += IncreaseDistance; ReloadHandler.instance.onClickRetry += ResetCounters; AchievementsController inst = AchievementsController.instance; inst.onReachAchievement += OnReachAchievement; }
public void IncreaseFire() { currentFire++; view.UpdateFire(currentFire); onIncreaseFire?.Invoke(currentFire); }