Beispiel #1
0
        public void AfterTest()
        {
            _animal.TestDestroy();
            _animal = null;

            _inputBinder = null;

            GameInstance.ClearGameInstance();
        }
Beispiel #2
0
        public void BeforeTest()
        {
            new GameObject().AddComponent <MockInputComponent>().gameObject.AddComponent <TestGameInstance>().TestAwake();

            var characterObject = new GameObject();

            _inputBinder = characterObject.AddComponent <MockInputBinderComponent>();
            characterObject.AddComponent <MockActionStateMachineComponent>();
            characterObject.AddComponent <MockSpeciesComponent>();
            characterObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();

            _animal = characterObject.AddComponent <TestAnimalCharacterComponent>();
            _animal.TestStart();
        }