diff --git a/Assets/Scripts/Global/CurrentStateData.cs b/Assets/Scripts/Global/CurrentStateData.cs index 5ca2778aefd2e5c4aedb0ad0816f353ee013459f..e02330fdcfddb19d815b632fbf78af7a1b05d1eb 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)