优化
This commit is contained in:
@@ -7,6 +7,7 @@ using Ichni.RhythmGame;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using Sirenix.OdinInspector;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni
|
||||
@@ -37,7 +38,8 @@ namespace Ichni
|
||||
public CommandScripts commandScripts;
|
||||
|
||||
public NoteBase.NoteJudgeType currentJudgeType;
|
||||
public bool useNotePrefab;
|
||||
public bool useNotePrefab = true;
|
||||
public bool ExpandWhileClick = false;
|
||||
public BasePrefabsCollection basePrefabs;
|
||||
public Dictionary<string, CustomPrefabsCollection> customPrefabs;
|
||||
public NoteAudioCollection noteAudioCollection;
|
||||
@@ -68,6 +70,8 @@ namespace Ichni
|
||||
|
||||
private void Start()
|
||||
{
|
||||
StartCoroutine(StartFrameRate());
|
||||
|
||||
this.elementName = "EditorManager";
|
||||
this.elementGuid = Guid.Empty;
|
||||
uiManager.hierarchy.GenerateTab(this, null);
|
||||
@@ -85,7 +89,23 @@ namespace Ichni
|
||||
|
||||
isLoaded = true;
|
||||
}
|
||||
|
||||
public float CurrentFrameRate;
|
||||
public TMP_Text FPStext;
|
||||
private IEnumerator StartFrameRate()
|
||||
{
|
||||
int frameCount = 0;
|
||||
while (true)
|
||||
{
|
||||
CurrentFrameRate = 1f / Time.deltaTime;
|
||||
if (frameCount == 2)
|
||||
{
|
||||
frameCount = 0;
|
||||
FPStext.text = string.Format("{0:N2}", CurrentFrameRate);
|
||||
}
|
||||
frameCount++;
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
if (isLoaded) projectManager.autoSaveManager.UpdateAutoSave();
|
||||
@@ -124,6 +144,9 @@ namespace Ichni
|
||||
var useNotePrefabToggle =
|
||||
inspector.GenerateToggle(this, inGameSettings, "Use Note Prefab", nameof(useNotePrefab));
|
||||
|
||||
var ExpandWhileClickToggle =
|
||||
inspector.GenerateToggle(this, inGameSettings, "Expand Tab While Click", nameof(ExpandWhileClick));
|
||||
|
||||
var generation = container.GenerateSubcontainer(3);
|
||||
var generateFolderButton =
|
||||
inspector.GenerateButton(this, generation, "Generate Folder",
|
||||
|
||||
Reference in New Issue
Block a user