浏览代码

Update OptionPanel.cs

x89rt2 2 月之前
父节点
当前提交
b68cb7419a
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. 3 7
      Assets/Scripts/Script/OptionPanel.cs

+ 3 - 7
Assets/Scripts/Script/OptionPanel.cs

@@ -1,8 +1,4 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEngine.UI;
-using UnityEngine.Events;
+using UnityEngine;
 
 public class OptionPanel : OffAnimation
 {
@@ -44,8 +40,8 @@ public class OptionPanel : OffAnimation
     {
         _isOpen = true;
         gameObject.SetActive(true);
-        _anim.SetInteger("Open", 1);
-        _anim.SetInteger("Close", 0);
+        _anim.SetInteger(OpenHash, 1);
+        _anim.SetInteger(CloseHash, 0);
 
         if (_volumePanel != null)
         {