コード例 #1
0
    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;
    }
コード例 #2
0
 public void IncreaseFire()
 {
     currentFire++;
     view.UpdateFire(currentFire);
     onIncreaseFire?.Invoke(currentFire);
 }