35 lines
790 B
C#
35 lines
790 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using BigSpace.XRCore.Base;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace BigSpace.XRCore.GameMode
|
|
{
|
|
public class GameModeMgr : MonoSingleton<GameModeMgr>
|
|
{
|
|
private IGameMode _gameMode;
|
|
|
|
[SerializeField]private bool _isOffline = true;
|
|
public bool IsOffline => _isOffline;
|
|
public int NextSceneId = 10000;
|
|
|
|
private void Start()
|
|
{
|
|
//Application.targetFrameRate = 30;
|
|
SceneMgr.Instance.nowSceneId = NextSceneId;
|
|
InitGameMode();
|
|
|
|
//PicoApi.InitEnterpriseService();
|
|
}
|
|
|
|
private void InitGameMode()
|
|
{
|
|
_gameMode = new OfflineMode();
|
|
_gameMode.Initialize();
|
|
}
|
|
}
|
|
}
|
|
|