From dcda816492cf152d267fdbdb7c19507762afb215 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Fri, 10 Jun 2022 09:45:03 +0200 Subject: [PATCH] FishingController.cs adjusted --- Assets/Scripts/FishingController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/FishingController.cs b/Assets/Scripts/FishingController.cs index 0fde017..ae076ed 100644 --- a/Assets/Scripts/FishingController.cs +++ b/Assets/Scripts/FishingController.cs @@ -107,8 +107,7 @@ public class FishingController : MonoBehaviour { return; } _iv.RemoveItem(_ic.GetItemByName("Bait"), 1); - _fishedThisDay++; - + Vector3 pos = Input.mousePosition; if (Camera.main != null) { @@ -134,6 +133,7 @@ public class FishingController : MonoBehaviour { if (_fishingTime <= MaxTime) { _messageView.SendMessage("Caught!", 1.5f); _iv.AddItem(_ic.GetItemByName("Fish"), Math.Max((int)(1 / (_fishingTime / 2)), 1)); + _fishedThisDay++; } else { _messageView.SendMessage("Failed to catch the fish! You were too slow!", 1.5f); }