(Fix) Loading Screen
This commit is contained in:
@@ -150,6 +150,9 @@ namespace Ashwild.Player
|
||||
public static event Action<string> SessionError; // human-readable failure reason
|
||||
public static event Action<int> RemotePlayerCountChanged; // number of *other* connected clients
|
||||
public static event Action LocalPlayerSpawned; // the local owned player NetworkObject is ready
|
||||
public static event Action LoadingCurtainShown; // loading curtain finished fading in — safe to start the heavy scene load behind it
|
||||
public static event Action ReturningToMenu; // leaving the session back to the menu — raise the curtain over the swap
|
||||
public static event Action MenuReady; // the menu scene has finished loading — lower the curtain
|
||||
public static event Action<ulong, string, string> InviteReceived; // inviter SteamID64, inviter name, connect code
|
||||
|
||||
// ============================================================
|
||||
@@ -330,6 +333,9 @@ namespace Ashwild.Player
|
||||
public static void RaiseSessionError(string reason) { Log(nameof(SessionError)); SessionError?.Invoke(reason); }
|
||||
public static void RaiseRemotePlayerCountChanged(int count) { Log(nameof(RemotePlayerCountChanged)); RemotePlayerCountChanged?.Invoke(count); }
|
||||
public static void RaiseLocalPlayerSpawned() { Log(nameof(LocalPlayerSpawned)); LocalPlayerSpawned?.Invoke(); }
|
||||
public static void RaiseLoadingCurtainShown() { Log(nameof(LoadingCurtainShown)); LoadingCurtainShown?.Invoke(); }
|
||||
public static void RaiseReturningToMenu() { Log(nameof(ReturningToMenu)); ReturningToMenu?.Invoke(); }
|
||||
public static void RaiseMenuReady() { Log(nameof(MenuReady)); MenuReady?.Invoke(); }
|
||||
|
||||
/// <summary>
|
||||
/// A friend invited the local player to their session (delivered by Steam). Carries the
|
||||
|
||||
Reference in New Issue
Block a user