예제 #1
0
 public void CaughtFish(CelestialBody body, Fish fish)
 {
     if (!fishingStats.ContainsKey(body))
     {
         fishingStats[body] = new FishingStats();
     }
     fishingStats[body].biggestFish = Math.Max(fishingStats[body].biggestFish, fish.weight);
     fishingStats[body].fishCaught++;
 }
예제 #2
0
        private void UpdateStats()
        {
            FishingStats stats = m_manager.GetFishingStats();

            labelSuccessCount.Text  = stats.TotalSuccessFishing.ToString();
            labelNotFoundCount.Text = stats.TotalNotFoundFish.ToString();
            labelNotEaredCount.Text = stats.TotalNotEaredFish.ToString();
            labelTotalCount.Text    = stats.Total().ToString();
        }