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