public void Update()
 {
     if (this.cutter == null)
     {
         this.cutter = FindObjectOfType <HoleCutterBehaviour>();
     }
 }
        public static void CutHoles(HoleCutterBehaviour cutter)
        {
            if (cutter == null)
            {
                Debug.LogError("cutter is null");
                return;
            }

            CutHoles(cutter.transform.localPosition, cutter.transform.localScale);
        }
 public void OnEnable()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else if (_instance != this)
     {
         DestroyImmediate(this.gameObject);
     }
 }
        private void newCutterGUI()
        {
            var buttonText = (this.HasCutter ? "Create New Cutter" : "Create Cutter");

            if (GUILayout.Button(buttonText))
            {
                if (this.HasCutter)
                {
                    DestroyImmediate(this.cutter.gameObject);
                }

                this.cutter = new GameObject("NLE_CUTTER").AddComponent <HoleCutterBehaviour>();
            }
        }