30 lines
776 B
C#
30 lines
776 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.StartMenu
|
|
{
|
|
public class StartMenuManager : MonoBehaviour
|
|
{
|
|
public static StartMenuManager instance;
|
|
public StartPage startPage;
|
|
public CreateEmptyProjectPage createEmptyProjectPage;
|
|
public EditorSettingsPage editorSettingsPage;
|
|
|
|
private void Awake()
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
else if (instance != this)
|
|
{
|
|
Destroy(gameObject);
|
|
return;
|
|
}
|
|
|
|
Application.targetFrameRate = 90;
|
|
}
|
|
}
|
|
} |