Init
This commit is contained in:
20
Assets/Scripts/Runtime/GameManager.cs
Normal file
20
Assets/Scripts/Runtime/GameManager.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class GameManager : SingletonBehaviour<GameManager>
|
||||
{
|
||||
public GameObject MainCanvasUI;
|
||||
public Camera MainCamera;
|
||||
public Camera UICamera;
|
||||
private void Awake()
|
||||
{
|
||||
DontDestroyOnLoad(MainCanvasUI);
|
||||
DontDestroyOnLoad(MainCamera);
|
||||
DontDestroyOnLoad(UICamera);
|
||||
}
|
||||
public bool HasNetwork()
|
||||
{
|
||||
return Application.internetReachability != NetworkReachability.NotReachable;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user