static void RefreshMesh()
 {
     foreach (GameObject go in Selection.gameObjects)
     {
         LevelBlockingMesh lbm = go.GetComponent <LevelBlockingMesh>();
         if (lbm)
         {
             //lbm.UVScale = Vector2.one;
             //lbm.UVPos = Vector2.zero;
             DestroyImmediate(lbm.meshFilter.sharedMesh);
             lbm.CreateMesh();
             lbm.UpdateMesh();
         }
     }
 }
        public virtual void OnSceneGUI()
        {
            Event e = Event.current;

            if (e != null && e.type == EventType.ValidateCommand && (e.commandName == "Paste" || e.commandName == "Duplicate"))
            {
                LevelBlockingMesh.duplicate = true;
                LevelBlockingMesh.dupAmount++;
                //Debug.Log("LBM Dup Amount : " + LevelBlockingMesh.dupAmount);
            }

            if (lbm.lastScale != t.localScale || lbm.UVScale != lbm.lastUVScale || lbm.UVPos != lbm.lastUVPos)
            {
                lbm.UpdateMesh();
            }
        }