Beispiel #1
0
        public void Start_SetsLocomotionTrackToLocomotionActionStateDefault()
        {
            _character.TestStart();

            Assert.AreEqual(EActionStateId.Locomotion, _stateMachine.RequestedId);
            Assert.AreEqual(EActionStateMachineTrack.Locomotion, _stateMachine.RequestedTrack);
        }
Beispiel #2
0
        public void BeforeTest()
        {
            var instance = new GameObject().AddComponent <MockInputComponent>();

            instance.gameObject.AddComponent <TestGameInstance>().TestAwake();

            var prefabObject = new GameObject();

            prefabObject.AddComponent <MockActionStateMachineComponent>();
            prefabObject.AddComponent <MockInputBinderComponent>();
            _character = prefabObject.AddComponent <TestCharacterComponent>();
            _character.TestStart();

            _heldItem = _character.gameObject.AddComponent <MockHeldItemComponent>();
        }