1
This commit is contained in:
@@ -2,25 +2,39 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AK.Wwise;
|
||||
using Ichni.UI;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Ichni.Menu
|
||||
namespace Ichni
|
||||
{
|
||||
public partial class MenuManager : MonoBehaviour
|
||||
{
|
||||
public static MenuManager instance;
|
||||
|
||||
[FormerlySerializedAs("preparePage")] public PrepareUIPage prepareUIPage;
|
||||
}
|
||||
|
||||
public partial class MenuManager
|
||||
{
|
||||
AsyncOperation asyncOperation;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
Application.targetFrameRate = 120;
|
||||
/*asyncOperation = SceneManager.LoadSceneAsync("GameScene");
|
||||
asyncOperation.allowSceneActivation = false;*/
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
asyncOperation = SceneManager.LoadSceneAsync("GameScene");
|
||||
asyncOperation.allowSceneActivation = false;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class MenuManager : MonoBehaviour
|
||||
public partial class MenuManager
|
||||
{
|
||||
public Sprite testSprite;
|
||||
public Switch testChapterSwitch;
|
||||
@@ -37,7 +51,7 @@ namespace Ichni.Menu
|
||||
"Trader",
|
||||
Color.red, testSprite,testChapterSwitch, testMusicSwitch);
|
||||
|
||||
SceneManager.LoadScene("GameScene");
|
||||
asyncOperation.allowSceneActivation = true;
|
||||
}
|
||||
|
||||
[Button]
|
||||
|
||||
Reference in New Issue
Block a user