Beispiel #1
0
        /// <summary>
        /// Called whenever a this state has been exited!
        /// </summary>
        public virtual void OnStateExit()
        {
            GameInputManager inputManager = Locator.Get <GameInputManager>();

            inputManager.EndCurrentSubscription();
        }
        /// <summary>
        /// Unsubscribes the delegates to the GameInputManager when this behavior gets disabled.
        /// </summary>
        protected virtual void OnDisable()
        {
            GameInputManager inputManager = Locator.Get <GameInputManager>();

            inputManager.EndCurrentSubscription();
        }