diff --git a/Assets/Scripts/Editor.cs b/Assets/Scripts/Editor.cs index 44e770f8..b2a1cf71 100644 --- a/Assets/Scripts/Editor.cs +++ b/Assets/Scripts/Editor.cs @@ -788,7 +788,7 @@ void UpdateTimeline() } } - if (Math.Abs(timelineZoom - timelineZoomTarget) > 0.0025) + if (Mathf.Abs(timelineZoom - timelineZoomTarget) > 0.0025) { timelineZoom = Mathf.Lerp(timelineZoom, timelineZoomTarget, 0.15f); } @@ -819,7 +819,7 @@ void UpdateTimeline() //NOTE(Simon): Timeline labels { - var maxNumLabels = Math.Floor(timelineWidth / 100); + var maxNumLabels = Mathf.Floor(timelineWidth / 100); var lowerround = FloorTime(zoomedLength / maxNumLabels); var upperround = CeilTime(zoomedLength / maxNumLabels); diff --git a/Assets/Scripts/UIScripts/IndexPanel.cs b/Assets/Scripts/UIScripts/IndexPanel.cs index 50be4402..07cac84a 100644 --- a/Assets/Scripts/UIScripts/IndexPanel.cs +++ b/Assets/Scripts/UIScripts/IndexPanel.cs @@ -323,13 +323,13 @@ public IEnumerator LoadInternetPageInternal() //Note(Simon): Videos { var videosThisPage = loadedVideos.videos ?? new List(); - while (videos.Count < Math.Min(videosPerPage, videosThisPage.Count)) + while (videos.Count < Mathf.Min(videosPerPage, videosThisPage.Count)) { var video = Instantiate(videoPrefab); video.transform.SetParent(videoContainer.transform, false); videos.Add(video); } - while (videos.Count > Math.Min(videosPerPage, videosThisPage.Count)) + while (videos.Count > Mathf.Min(videosPerPage, videosThisPage.Count)) { var video = videos[videos.Count - 1]; videos.RemoveAt(videos.Count - 1); @@ -392,13 +392,13 @@ public void LoadLocalPageInternal() //Note(Simon): Videos { var videosThisPage = loadedVideos.videos ?? new List(); - while (videos.Count < Math.Min(videosPerPage, videosThisPage.Count)) + while (videos.Count < Mathf.Min(videosPerPage, videosThisPage.Count)) { var video = Instantiate(videoPrefab); video.transform.SetParent(videoContainer.transform, false); videos.Add(video); } - while (videos.Count > Math.Min(videosPerPage, videosThisPage.Count)) + while (videos.Count > Mathf.Min(videosPerPage, videosThisPage.Count)) { var video = videos[videos.Count - 1]; videos.RemoveAt(videos.Count - 1);