Camera Tilt和Camera Offset效果,以及退出,重载功能
This commit is contained in:
@@ -13,16 +13,7 @@ namespace Ichni.StartMenu
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (instance == null)
|
||||
{
|
||||
instance = this;
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
else if (instance != this)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
return;
|
||||
}
|
||||
instance = this;
|
||||
|
||||
Application.targetFrameRate = 90;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using Michsky.MUIP;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEngine.UI;
|
||||
@@ -12,9 +13,11 @@ namespace Ichni.StartMenu
|
||||
public partial class StartPage : StartMenuPage
|
||||
{
|
||||
public RectTransform background;
|
||||
public TMP_Text logText;
|
||||
|
||||
public ButtonManager createEmptyProjectButton;
|
||||
public Button editorSettingsButton;
|
||||
public Button quitButton;
|
||||
}
|
||||
|
||||
public partial class StartPage
|
||||
@@ -50,6 +53,7 @@ namespace Ichni.StartMenu
|
||||
{
|
||||
createEmptyProjectButton.onClick.AddListener(GoToNewProjectPage);
|
||||
editorSettingsButton.onClick.AddListener(GoToEditorSettingsPage);
|
||||
quitButton.onClick.AddListener(Application.Quit);
|
||||
}
|
||||
|
||||
private void GoToNewProjectPage()
|
||||
|
||||
Reference in New Issue
Block a user