change: added support for starting a quick offline session through a button onscreen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user