Narrow pilot command runtime access
This commit is contained in:
parent
d27e8ccee1
commit
faf1d31a43
3 changed files with 16 additions and 16 deletions
|
|
@ -32,7 +32,9 @@ public class ActionGameManager : MonoBehaviour
|
|||
private AetheriaUnityGameplayBootShell _gameplayBootShell;
|
||||
private AetheriaUnityGameplaySceneWiring _sceneWiring;
|
||||
private AetheriaUnityPilotCommandSender PilotCommands =>
|
||||
_pilotCommands ??= new AetheriaUnityPilotCommandSender(ResolveCurrentRuntimeClient, () => Time.unscaledTime);
|
||||
_pilotCommands ??= new AetheriaUnityPilotCommandSender(
|
||||
() => AetheriaUnityRuntimeClientProvider.Control("unity-pilot-commands"),
|
||||
() => Time.unscaledTime);
|
||||
private AetheriaUnityObservedDockingIndex ObservedDocking =>
|
||||
_observedDocking ??= new AetheriaUnityObservedDockingIndex(_observedEntityIndex);
|
||||
private AetheriaUnityObservedEntityRestorer ObservedEntityRestorer =>
|
||||
|
|
@ -291,12 +293,6 @@ public class ActionGameManager : MonoBehaviour
|
|||
private readonly AetheriaUnityDragSession _dragSession = new AetheriaUnityDragSession();
|
||||
private readonly AetheriaUnityActionBarPresentation _actionBarPresentation = new AetheriaUnityActionBarPresentation();
|
||||
|
||||
private static AetheriaClient ResolveCurrentRuntimeClient()
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider.CurrentClientForStateFile(
|
||||
AetheriaUnityRuntimePaths.RuntimeStateFilePath);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
_gameplayInputShell?.Dispose();
|
||||
|
|
|
|||
Loading…
Reference in a new issue