hold修闪烁
This commit is contained in:
@@ -34,6 +34,7 @@ namespace Ichni.RhythmGame
|
||||
hold.track = track;
|
||||
hold.trackPositioner = hold.AddComponent<SplinePositioner>();
|
||||
hold.trackPositioner.spline = track.trackPathSubmodule.path;
|
||||
hold.trackPositioner.updateMethod = SplineUser.UpdateMethod.LateUpdate;
|
||||
hold.isOnTrack = true;
|
||||
hold.UpdateNoteInTrack();
|
||||
}
|
||||
@@ -132,10 +133,10 @@ namespace Ichni.RhythmGame
|
||||
return;
|
||||
}
|
||||
|
||||
if (isOnTrack)
|
||||
/*if (isOnTrack)
|
||||
{
|
||||
UpdateNoteInTrack();
|
||||
}
|
||||
}*/
|
||||
|
||||
float songTime = EditorManager.instance.songInformation.songTime;
|
||||
|
||||
@@ -208,6 +209,14 @@ namespace Ichni.RhythmGame
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
if (isOnTrack)
|
||||
{
|
||||
UpdateNoteInTrack();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame
|
||||
@@ -28,6 +30,26 @@ namespace Ichni.RhythmGame
|
||||
selectSubmodule = new SelectSubmodule(this, note);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
base.SetUpInspector();
|
||||
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("Generate");
|
||||
var generateAnimation = container.GenerateSubcontainer(3);
|
||||
var displacementButton = inspector.GenerateButton(this, generateAnimation, "Displacement",
|
||||
() => Displacement.GenerateElement("New Displacement", Guid.NewGuid(), new List<string>(), true, this,
|
||||
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat()));
|
||||
var swirlButton = inspector.GenerateButton(this, generateAnimation, "Swirl",
|
||||
() => Swirl.GenerateElement("New Swirl", Guid.NewGuid(), new List<string>(), true, this,
|
||||
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat()));
|
||||
var scaleButton = inspector.GenerateButton(this, generateAnimation, "Scale", () =>
|
||||
{
|
||||
Scale.GenerateElement("New Scale", Guid.NewGuid(), new List<string>(), true, this,
|
||||
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat());
|
||||
}); //缩放
|
||||
}
|
||||
|
||||
public virtual void Recover()
|
||||
{
|
||||
|
||||
|
||||
@@ -26,6 +26,14 @@ namespace Ichni.StartMenu
|
||||
|
||||
public ThemeBundleSelector themeBundleSelector;
|
||||
|
||||
public AsyncOperation loadEditor;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
loadEditor = SceneManager.LoadSceneAsync("EditorScene");
|
||||
loadEditor.allowSceneActivation = false;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (canvasGroup.interactable && Keyboard.current.escapeKey.wasPressedThisFrame)
|
||||
@@ -70,7 +78,7 @@ namespace Ichni.StartMenu
|
||||
.Subscribe(_ =>
|
||||
{
|
||||
Debug.Log("All AssetBundles are loaded. Switching scene.");
|
||||
SceneManager.LoadScene("EditorScene");
|
||||
loadEditor.allowSceneActivation = true;
|
||||
}).AddTo(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user