|
@@ -14,7 +14,8 @@ public class DeviceReconnectView : MonoBehaviour
|
|
|
public Action onComplete = null;
|
|
public Action onComplete = null;
|
|
|
|
|
|
|
|
public static GameObject Show() {
|
|
public static GameObject Show() {
|
|
|
- if (SceneManager.GetActiveScene().name != "Game") return null;
|
|
|
|
|
|
|
+ string sceneName = SceneManager.GetActiveScene().name;
|
|
|
|
|
+ if (!sceneName.StartsWith("Game")) return null;
|
|
|
try {
|
|
try {
|
|
|
GameObject view = Resources.Load<GameObject>("Prefabs/Views/DeviceReconnectView");
|
|
GameObject view = Resources.Load<GameObject>("Prefabs/Views/DeviceReconnectView");
|
|
|
return GameObject.Instantiate(view);
|
|
return GameObject.Instantiate(view);
|