//call from editor public void reload_map() { ccontroller.hide_reload_btn(); ccontroller.hide_screenShot_btn(); if (CanvasController.isFirstSession) { ccontroller.resetAnimationState(); ccontroller.hide_info_Button(); if (SaveManager.Instance.session_state.isFirstEnter) { Invoke("show_first_help", 0.5f); } } generate_script.reload_plane(); if (mapWasShown) { SpawnOnMap component = MAP.GetComponent <SpawnOnMap>(); component.switchPins(false); } mapWasShown = false; m_HitTransform.localScale = new Vector3(0, 0, 0); MAP.GetComponent <Animator>().SetInteger("mapAnimTransition", 0); pointCloud.GetComponent <UnityPointCloudExample>().switchCloud(true); camera_manager.ResetAr(); }