breaking: Make clientLoadedScene protected (#3098)

- users shouldn't be messing with this
- it does need to be available in an override of OnClientConnect
This commit is contained in:
MrGadget 2022-02-13 03:56:54 -05:00 committed by GitHub
parent 8394190b11
commit 9e45ce869b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,8 +112,7 @@ public class NetworkManager : MonoBehaviour
/// <summary>True if the client loaded a new scene when connecting to the server.</summary>
// This is set before OnClientConnect is called, so it can be checked
// there to perform different logic if a scene load occurred.
[NonSerialized]
public bool clientLoadedScene;
protected bool clientLoadedScene;
// helper enum to know if we started the networkmanager as server/client/host.
// -> this is necessary because when StartHost changes server scene to