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++; }
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(); }