private void Awake() { var gameController = Utils.FindNovaGameController(); gameState = gameController.GameState; inputMapper = gameController.InputMapper; viewManager = Utils.FindViewManager(); dialogueBoxController = viewManager.GetController <DialogueBoxController>(); }
protected virtual void Awake() { this.RuntimeAssert(myPanel != null, "MyPanel is not set."); transitions = myPanel.GetComponents <UIViewTransitionBase>(); viewManager = GetComponentInParent <ViewManager>(); this.RuntimeAssert(viewManager != null, "Missing ViewManager in ancestors."); viewManager.SetController(this); inputMapper = Utils.FindNovaGameController().InputMapper; }
protected virtual bool Init() { if (inited) { return(true); } this.RuntimeAssert(myPanel != null, "MyPanel is not set."); transitions = myPanel.GetComponents <UIViewTransitionBase>().ToList(); viewManager = GetComponentInParent <ViewManager>(); this.RuntimeAssert(viewManager != null, "Missing ViewManager in parents."); viewManager.SetController(this); inputMapper = Utils.FindNovaGameController().InputMapper; inited = true; return(false); }
private void Awake() { inputMapper = Utils.FindNovaGameController().InputMapper; }
public void EnableInput() { inputEnabled = true; InputMapper.SetEnableGroup(AbstractKeyGroup.Game | AbstractKeyGroup.UI); }
// Disable all abstract keys except StepForward public void DisableInput() { inputEnabled = false; InputMapper.SetEnableGroup(AbstractKeyGroup.None); InputMapper.SetEnable(AbstractKey.StepForward, true); }