GeoSus
This commit is contained in:
@@ -78,6 +78,21 @@ namespace Subsystems
|
||||
/// <summary>Called from OnSceneLoaded when Client.unity loads so the
|
||||
/// Player capsule (which lives in Client.unity) can be wired at runtime.</summary>
|
||||
public void SetPlayerObject(GameObject player) { _player = player; }
|
||||
|
||||
/// <summary>
|
||||
/// Kick off GPS initialization if it hasn't started yet. Safe to call
|
||||
/// repeatedly. Hosts must call this from the lobby setup screen so
|
||||
/// that by the time they click "Create Lobby" we have a real GPS
|
||||
/// fix to use as the play-area center, instead of falling back to
|
||||
/// the hardcoded coordinates.
|
||||
/// </summary>
|
||||
public void EnsureGPSStarted()
|
||||
{
|
||||
if (_testMode) return;
|
||||
if (_coroutineHost == null) return;
|
||||
if (_GPSState == GPSState.Uninitialized)
|
||||
_coroutineHost.StartCoroutine(InitiallizeGPS());
|
||||
}
|
||||
public void positionCheck()
|
||||
{
|
||||
var state = _gameClient?.CurrentLobbyState;
|
||||
|
||||
Reference in New Issue
Block a user