diff --git a/Runtime/Navigation/VioletButton.cs b/Runtime/Navigation/VioletButton.cs index ef2af72..43862a2 100644 --- a/Runtime/Navigation/VioletButton.cs +++ b/Runtime/Navigation/VioletButton.cs @@ -9,7 +9,7 @@ namespace VioletUI { public class VioletButton : UnityEngine.UI.Button { public ScreenId visitScreen; - Navigator navigator; + protected Navigator navigator; protected override void Awake() { base.Awake(); navigator = gameObject.GetComponentInParent(); diff --git a/Runtime/StateMonoBehaviour.cs b/Runtime/StateMonoBehaviour.cs index 4fa6837..17624c9 100644 --- a/Runtime/StateMonoBehaviour.cs +++ b/Runtime/StateMonoBehaviour.cs @@ -36,13 +36,13 @@ public class View : View { public abstract class RepeatView : RepeatView { protected override TState State => Singleton?.State; protected override TState LastState => Singleton?.LastState; - protected override Dispatcher Dispatcher => Dispatcher; + protected override Dispatcher Dispatcher => Singleton?.Dispatcher; } public abstract class ChildView : ChildView { protected override TState State => Singleton?.State; protected override TState LastState => Singleton?.LastState; - protected override Dispatcher Dispatcher => Dispatcher; + protected override Dispatcher Dispatcher => Singleton?.Dispatcher; } void Awake() {