Ejemplo n.º 1
0
        public void End_UnregistersMenuInputHandler()
        {
            _actionState.Start();
            _actionState.End();

            Assert.IsTrue(_inputBinder.IsHandlerOfTypeUnregistered <InGameMenuInputHandler>());
        }
        public void End_UnregistersPushObjectInputHandler()
        {
            var actionState = new PushObjectActionState(new PushObjectActionStateInfo(_inputBinder.gameObject, _pushableObject.gameObject, _pushSocket));

            actionState.Start();

            actionState.End();

            Assert.IsTrue(_inputBinder.IsHandlerOfTypeUnregistered <PushObjectInputHandler>());
        }
        public void End_UnregistersLocomotionInputHandler()
        {
            var locomotion = new LocomotionActionState(new ActionStateInfo(_inputBinder.gameObject));

            locomotion.Start();

            locomotion.End();

            Assert.IsTrue(_inputBinder.IsHandlerOfTypeUnregistered <LocomotionInputHandler>());
        }
Ejemplo n.º 4
0
        public void LeaveLocomotionMessage_UnregistersAnimalInputHandler()
        {
            UnityMessageEventFunctions.InvokeMessageEventWithDispatcher(_animal.gameObject, new EnterLocomotionStateMessage());
            UnityMessageEventFunctions.InvokeMessageEventWithDispatcher(_animal.gameObject, new LeaveLocomotionStateMessage());

            Assert.IsTrue(_inputBinder.IsHandlerOfTypeUnregistered <AnimalInputHandler>());
        }
Ejemplo n.º 5
0
        public void End_UnregistersVirtualMouseInputHandler()
        {
            _actionState.Start();

            _actionState.End();

            Assert.IsTrue(_inputBinder.IsHandlerOfTypeUnregistered <VirtualMouseInputHandler>());
        }