コード例 #1
0
 public void RaisePointsUpdated(float kingFavor)
 {
     PointsUpdated?.Invoke(kingFavor);
     if (kingFavor <= 0)
     {
         print("lost");
         // Lose condition
         Lost = true;
         LoadEndGameScene();
     }
 }
コード例 #2
0
ファイル: ProfileManager.cs プロジェクト: b7c/Xabbo.Core
 protected virtual void OnPointsUpdated(ActivityPointType type, int amount, int change)
 => PointsUpdated?.Invoke(this, new PointsUpdatedEventArgs(type, amount, change));