Jelajahi Sumber

Changes I guess?

x89rt2 4 bulan lalu
induk
melakukan
98a33c9f56

+ 3 - 3
Assets/Scripts/Script/ContinuousController.cs

@@ -896,7 +896,7 @@ public class ContinuousController : MonoBehaviour
     #endregion
 
     #region Show CutIn Animation
-    [HideInInspector] public bool showCutInAnimation = true;
+    public bool showCutInAnimation;
     string _showCutInAnimationKey = "ShowCutInAnimation";
 
     public void SaveShowCutInAnimation()
@@ -907,8 +907,8 @@ public class ContinuousController : MonoBehaviour
     public void LoadShowCutInAnimation()
     {
         //TODO: Setting default to false, to fix animation syncing bug, MB
-        showCutInAnimation = true;
-        //showCutInAnimation = PlayerPrefsUtil.GetBool(_showCutInAnimationKey, true);
+        //showCutInAnimation = false;
+        showCutInAnimation = PlayerPrefsUtil.GetBool(_showCutInAnimationKey, true);
     }
     #endregion
 

+ 2 - 6
Assets/Scripts/Script/GameplayOption.cs

@@ -1,9 +1,5 @@
 using Photon.Pun;
-using System;
-using System.Collections;
-using System.Collections.Generic;
 using UnityEngine;
-using UnityEngine.Events;
 using UnityEngine.UI;
 public class GameplayOption : OffAnimation
 {
@@ -60,11 +56,11 @@ public class GameplayOption : OffAnimation
                 value: ContinuousController.instance.reverseOpponentsCards
             );
 
-            /*OptionUtility.InitToggle(
+            OptionUtility.InitToggle(
                 toggle: _showCutInAnimationToggle,
                 onToggleChanged: OnShowCutInAnimationToggleChanged,
                 value: ContinuousController.instance.showCutInAnimation
-            );*/
+            );
 
             OptionUtility.InitToggle(
                 toggle: _turnSuspendedCardsToggle,

+ 0 - 3
Assets/Scripts/Script/OptionUtility.cs

@@ -1,6 +1,3 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
 using UnityEngine.UI;
 using UnityEngine.Events;
 public static class OptionUtility