快捷功能
Note时间填充 Hierarchy排序
This commit is contained in:
@@ -13,7 +13,7 @@ using Inspector = Ichni.Editor.Inspector;
|
||||
|
||||
namespace Ichni.RhythmGame
|
||||
{
|
||||
public abstract partial class GameElement : SerializedMonoBehaviour, IBaseElement
|
||||
public abstract partial class GameElement : SerializedMonoBehaviour, IBaseElement, IComparable<GameElement>
|
||||
{
|
||||
//物体名
|
||||
public string elementName;
|
||||
@@ -38,6 +38,8 @@ namespace Ichni.RhythmGame
|
||||
|
||||
//存档类
|
||||
public BaseElement_BM matchedBM { get; set; }
|
||||
|
||||
public virtual int HierarchyPriority => 0;
|
||||
|
||||
/// <summary>
|
||||
/// 首次初始化
|
||||
@@ -89,6 +91,11 @@ namespace Ichni.RhythmGame
|
||||
transform.SetParent(parentElement.transform);
|
||||
}
|
||||
}
|
||||
|
||||
public int CompareTo(GameElement other)
|
||||
{
|
||||
return HierarchyPriority.CompareTo(other.HierarchyPriority);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract partial class GameElement //存档,删除,复制,粘贴
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace Ichni.RhythmGame
|
||||
[Title("In-Game Info")]
|
||||
public Vector2 noteScreenPosition;
|
||||
[FormerlySerializedAs("isJudged")] public bool isFirstJudged;
|
||||
public override int HierarchyPriority => -10;
|
||||
|
||||
/// <summary>
|
||||
/// 在MovableTrack上更新Note的位置,注意HoldNote需要重写这个方法
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace Ichni.RhythmGame
|
||||
public TimeDurationSubmodule timeDurationSubmodule { get; set; }
|
||||
public ColorSubmodule colorSubmodule { get; set; }
|
||||
public bool haveEmission => false;
|
||||
public override int HierarchyPriority => -100;
|
||||
|
||||
[Title("Editor独有参数")]
|
||||
[SerializeField]
|
||||
|
||||
Reference in New Issue
Block a user