|
@@ -35,6 +35,17 @@ public class CrossHair : MonoBehaviour
|
|
|
this.GetComponent<Image>().enabled = this.visiable;
|
|
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() {
|
|
public RaycastHit GetRaycastHit() {
|
|
|
float maxDistance = 100;
|
|
float maxDistance = 100;
|
|
|
int layerMask = 1 << 8;
|
|
int layerMask = 1 << 8;
|