@@ -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;