Code cleanup.

This commit is contained in:
2023-02-17 21:13:19 +08:00
parent 6a648c2dcd
commit 36dddea4d9
2 changed files with 4 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ namespace Cryville.Crtr {
EventBus bbus; EventBus bbus;
EventBus tbus; EventBus tbus;
EventBus nbus; EventBus nbus;
InputProxy inputProxy;
Judge judge; Judge judge;
bool started = false; bool started = false;
@@ -68,8 +69,6 @@ namespace Cryville.Crtr {
public static Dictionary<Identifier, MotionRegistry> motionRegistry = new Dictionary<Identifier, MotionRegistry>(); public static Dictionary<Identifier, MotionRegistry> motionRegistry = new Dictionary<Identifier, MotionRegistry>();
public static PdtEvaluator etor; public static PdtEvaluator etor;
InputProxy inputProxy;
#endregion #endregion
#region MonoBehaviour #region MonoBehaviour

View File

@@ -233,8 +233,8 @@ namespace Cryville.Crtr.Event {
#region ISkinnableGroup #region ISkinnableGroup
public abstract string TypeName { get; } public abstract string TypeName { get; }
public SkinContext SkinContext { get; set; } public SkinContext SkinContext { get; private set; }
public Anchor OpenedAnchor { get; set; } public Anchor OpenedAnchor { get; private set; }
public bool TryGetAnchorsByName(int name, out IReadOnlyCollection<Anchor> result) { public bool TryGetAnchorsByName(int name, out IReadOnlyCollection<Anchor> result) {
List<Anchor> anchors; List<Anchor> anchors;
var ret = Anchors.TryGetValue(name, out anchors); var ret = Anchors.TryGetValue(name, out anchors);