mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
migrate syncbase
This commit is contained in:
parent
bedf50262f
commit
4257b40461
@ -134,20 +134,20 @@ public abstract class SyncBase : QSBNetworkTransform
|
||||
.MaxBy(x => x.PlayerId);
|
||||
}
|
||||
|
||||
QSBSceneManager.OnSceneLoaded += OnSceneLoaded;
|
||||
QSBSceneManager.OnPreSceneLoad += OnPreSceneLoad;
|
||||
}
|
||||
|
||||
public override void OnStopClient()
|
||||
{
|
||||
base.OnStopClient();
|
||||
QSBSceneManager.OnSceneLoaded -= OnSceneLoaded;
|
||||
QSBSceneManager.OnPreSceneLoad -= OnPreSceneLoad;
|
||||
if (IsInitialized)
|
||||
{
|
||||
SafeUninit();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnSceneLoaded(OWScene oldScene, OWScene newScene, bool isInUniverse)
|
||||
private void OnPreSceneLoad(OWScene oldScene, OWScene newScene)
|
||||
{
|
||||
if (IsInitialized)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user