Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions Assets/Fonts/Rajdhani/Rajdhani-Medium SDF.asset
Git LFS file not shown
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Assets/Scenes/Main.unity
Git LFS file not shown
4 changes: 2 additions & 2 deletions Assets/Scenes/MainMenu.unity
Git LFS file not shown
8 changes: 8 additions & 0 deletions Assets/Scripts/Gameplay/UI/LoadingScreen/LoadingScreen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using UnityEngine;
using UnityEngine.UIElements;
#if !UNITY_SERVER
using UnityEngine.UIElements.Experimental;
#endif

namespace Unity.Entities.Racing.Gameplay
{
Expand Down Expand Up @@ -28,27 +30,33 @@ private void Awake()

private void OnEnable()
{
#if !UNITY_SERVER
var root = GetComponent<UIDocument>().rootVisualElement;
m_Container = root.Q<VisualElement>("loading-screen-container");
m_LoadingCircle = root.Q<VisualElement>("loading-circle");
m_TextLabel = m_Container.Q<Label>("loading-label");
#endif
RotateLoading();
}

public void ShowLoadingScreen(bool value, string label = "LOADING...")
{
#if !UNITY_SERVER
m_TextLabel.text = label;
m_Container.style.display = value ? DisplayStyle.Flex : DisplayStyle.None;
#endif
}

private void RotateLoading()
{
#if !UNITY_SERVER
m_LoadingCircle.experimental.animation.Rotation(Quaternion.Euler(0f, 0, -180f), 500).Ease(Easing.Linear)
.OnCompleted(() =>
{
m_LoadingCircle.experimental.animation.Rotation(Quaternion.Euler(0f, 0f, -360f), 500)
.Ease(Easing.Linear).OnCompleted(RotateLoading);
});
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class VivoxChannel : MonoBehaviour

private Task JoinLobbyChannel()
{
if (VivoxService.Instance == null) return null;
VivoxService.Instance.LoggedOut += OnUserLoggedOut;
VivoxService.Instance.ConnectionRecovered += OnConnectionRecovered;
VivoxService.Instance.ConnectionRecovering += OnConnectionRecovering;
Expand All @@ -22,6 +23,7 @@ private Task JoinLobbyChannel()

void OnDestroy()
{
if(VivoxService.Instance == null) return;
VivoxService.Instance.ConnectionRecovered -= OnConnectionRecovered;
VivoxService.Instance.ConnectionRecovering -= OnConnectionRecovering;
VivoxService.Instance.ConnectionFailedToRecover -= OnConnectionFailedToRecover;
Expand Down
Loading