change: added support for starting a quick offline session through a button onscreen

This commit is contained in:
Chris
2025-09-04 13:22:32 -04:00
parent 413022d390
commit 01e074e1f1
2 changed files with 330 additions and 1 deletions

View File

@@ -10,9 +10,19 @@ using Unity.Services.Relay.Models;
using Unity.Services.Core;
public class SessionManager : MonoBehaviour{
public GameObject playerPrefab;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start(){
}
public void StartOfflineSession(){
Instantiate(playerPrefab);
}
public void StartOnlineSession(){
// Not handled in this script for now
}
// Update is called once per frame