Files
ichni_Creator_Studio/Assets/Scripts/StartMenu/StartMenuManager.cs

30 lines
776 B
C#
Raw Normal View History

2025-03-08 14:21:10 -05:00
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;
2025-03-08 23:11:55 -05:00
public EditorSettingsPage editorSettingsPage;
2025-03-08 14:21:10 -05:00
private void Awake()
{
if (instance == null)
{
instance = this;
DontDestroyOnLoad(gameObject);
}
else if (instance != this)
{
Destroy(gameObject);
2025-05-10 23:55:51 -04:00
return;
2025-03-08 14:21:10 -05:00
}
2025-05-10 23:55:51 -04:00
Application.targetFrameRate = 90;
2025-03-08 14:21:10 -05:00
}
}
}