lvjincheng 3 жил өмнө
parent
commit
9f6b4e256f

+ 11 - 0
Assets/BowArrow/Scripts/Game/CrossHair.cs

@@ -35,6 +35,17 @@ public class CrossHair : MonoBehaviour
         this.GetComponent<Image>().enabled = this.visiable;
     }
 
+    public void SetOpen(bool open) {
+        this.open = open;
+        if (!this.open) {
+            SetVisiable(false);
+        }
+    }
+
+    public bool GetOpen() {
+        return this.open;
+    }
+
     public RaycastHit GetRaycastHit() {
         float maxDistance = 100;
         int layerMask = 1 << 8;