Explorar o código

该变量禁止序列化

lvjincheng %!s(int64=4) %!d(string=hai) anos
pai
achega
af19c8bcf4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Assets/BowArrow/Scripts/Game/GameAssistUI.cs

+ 1 - 1
Assets/BowArrow/Scripts/Game/GameAssistUI.cs

@@ -136,7 +136,7 @@ public class GameAssistUI : MonoBehaviour
 
     // ------ 发射加速功能 ------
 
-    public int shootScaleValue = 1;
+    [System.NonSerialized] public int shootScaleValue = 1;
     Sequence seq2 = null;
     bool scaleShootOn = false; //该功能是否处于打开状态