From df791bfc10016dc53336b3da8d2a34a8ef8283bd Mon Sep 17 00:00:00 2001
From: hcarissa <13520164@std.stei.itb.ac.id>
Date: Sun, 16 Apr 2023 15:58:48 +0700
Subject: [PATCH] fix coin

---
 Assets/Scripts/Global/CurrentStateData.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/Global/CurrentStateData.cs b/Assets/Scripts/Global/CurrentStateData.cs
index 5ca2778..e02330f 100644
--- a/Assets/Scripts/Global/CurrentStateData.cs
+++ b/Assets/Scripts/Global/CurrentStateData.cs
@@ -118,9 +118,9 @@ public class CurrentStateData
         return _currentGameData.coin;
     }
 
-    public static int SetCurrentCoin(int coin)
+    public static void SetCurrentCoin(int coin)
     {
-        return _currentGameData.coin = coin;
+        _currentGameData.coin = coin;
     }
     
     public static void AddCoin(int coin)
-- 
GitLab