Пример #1
0
 public void RaisePointsUpdated(float kingFavor)
 {
     PointsUpdated?.Invoke(kingFavor);
     if (kingFavor <= 0)
     {
         print("lost");
         // Lose condition
         Lost = true;
         LoadEndGameScene();
     }
 }
Пример #2
0
 protected virtual void OnPointsUpdated(ActivityPointType type, int amount, int change)
 => PointsUpdated?.Invoke(this, new PointsUpdatedEventArgs(type, amount, change));