// Token: 0x06002EB5 RID: 11957 RVA: 0x00131B38 File Offset: 0x0012FF38
 private void Start()
 {
     this._isBuilding  = false;
     this._dragStart   = Vector2.zero;
     this._dragEnd     = Vector2.zero;
     this._isDragging  = false;
     this.selection    = new List <WorkzoneSelection>();
     this.handlePlane  = default(Plane);
     this.group        = new GameObject().transform;
     this.group.name   = "Group";
     this.group.parent = Level.editing;
     this.handle       = ((GameObject)UnityEngine.Object.Instantiate(Resources.Load("Edit/Handles"))).transform;
     this.handle.name  = "Handle";
     this.handle.gameObject.SetActive(false);
     this.handle.parent = Level.editing;
     Layerer.relayer(this.handle, LayerMasks.VIEWMODEL);
     this.transformHandle = this.handle.FindChild("Transform");
     this.planeHandle     = this.handle.FindChild("Plane");
     this.rotateHandle    = this.handle.FindChild("Rotate");
     this.dragMode        = EDragMode.TRANSFORM;
     this.dragCoordinate  = EDragCoordinate.GLOBAL;
     this.dragable        = new List <EditorDrag>();
     this.snapTransform   = 1f;
     this.snapRotation    = 15f;
 }
		// Token: 0x06003A3B RID: 14907 RVA: 0x001BE148 File Offset: 0x001BC548
		public static void relayer(Transform target, int layer)
		{
			if (target == null)
			{
				return;
			}
			target.gameObject.layer = layer;
			for (int i = 0; i < target.childCount; i++)
			{
				Layerer.relayer(target.GetChild(i), layer);
			}
		}
        // Token: 0x060018FB RID: 6395 RVA: 0x0008CC54 File Offset: 0x0008B054
        public void updateStatTracker(bool viewmodel)
        {
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(Resources.Load <GameObject>("Economy/Attachments/Stat_Tracker"));

            gameObject.transform.SetParent(this.statTrackerHook);
            gameObject.transform.localPosition = Vector3.zero;
            gameObject.transform.localRotation = Quaternion.identity;
            this.statTrackerText = gameObject.GetComponentInChildren <Text>();
            if (viewmodel)
            {
                Layerer.relayer(gameObject.transform, LayerMasks.VIEWMODEL);
            }
        }