mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Made the camera path arrows turn off every time we play or continue the path, without bringing them back if the path is paused or stopped, making its state in the UI more consistent.
This commit is contained in:
1 parent
bc58603398
commit
a7038ec378
1 file changed
+2
-3
@@ -331,7 +331,7 @@ namespace UnityExplorer.UI.Panels
|
||||
UpdateCatmullRomMoverData();
|
||||
GetCameraPathsManager().StartPath();
|
||||
UIManager.ShowMenu = false;
|
||||
if (pathVisualizer) pathVisualizer.SetActive(false);
|
||||
visualizePathToggle.isOn = false;
|
||||
}
|
||||
|
||||
if (unpauseOnPlay && UIManager.GetTimeScaleWidget().IsPaused()){
|
||||
@@ -342,7 +342,7 @@ namespace UnityExplorer.UI.Panels
|
||||
void TogglePause_OnClick(){
|
||||
if(GetCameraPathsManager()){
|
||||
GetCameraPathsManager().TogglePause();
|
||||
if (pathVisualizer) pathVisualizer.SetActive(!GetCameraPathsManager().IsPaused());
|
||||
if (visualizePathToggle.isOn && GetCameraPathsManager().IsPaused()) visualizePathToggle.isOn = false;
|
||||
}
|
||||
|
||||
EventSystemHelper.SetSelectedGameObject(null);
|
||||
@@ -351,7 +351,6 @@ namespace UnityExplorer.UI.Panels
|
||||
void Stop_OnClick(){
|
||||
if (GetCameraPathsManager()){
|
||||
GetCameraPathsManager().Stop();
|
||||
if (pathVisualizer) pathVisualizer.SetActive(true);
|
||||
}
|
||||
|
||||
EventSystemHelper.SetSelectedGameObject(null);
|
||||
|
||||
Reference in new issue
Block a user