示例#1
0
        public void AfterTest()
        {
            _transformSpecies            = null;
            _species                     = null;
            _actionStateMachineComponent = null;

            _totem = null;
        }
示例#2
0
        public void BeforeTest()
        {
            _totem = new GameObject().AddComponent <TestTotemComponent>();

            _actionStateMachineComponent = new GameObject().AddComponent <MockActionStateMachineComponent>();
            _species = _actionStateMachineComponent.gameObject.AddComponent <MockSpeciesComponent>();

            var transformObject = new GameObject();

            _transformSpecies          = transformObject.AddComponent <MockSpeciesComponent>();
            _totem.TransformTypePrefab = transformObject;

            _totem.TestStart();
        }