コード例 #1
0
        public void AfterTest()
        {
            _interaction = null;

            _otherInteractable = null;
            _interactable      = null;
        }
コード例 #2
0
        public void BeforeTest()
        {
            _interactable      = new GameObject().AddComponent <MockInteractableComponent>();
            _otherInteractable = new GameObject().AddComponent <MockInteractableComponent>();

            _interaction = new GameObject().AddComponent <TestInteractionComponent>();
            _interaction.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();
        }
コード例 #3
0
        public void BeforeTest()
        {
            _interactable      = new GameObject().AddComponent <MockInteractableComponent>();
            _otherInteractable = new GameObject().AddComponent <MockInteractableComponent>();

            _interaction      = new GameObject().AddComponent <MockInteractionComponent>();
            _otherInteraction = new GameObject().AddComponent <MockInteractionComponent>();

            _zone = new GameObject().AddComponent <TestInteractionZone>();
            _zone.AttachedInteractable = _interactable.gameObject;
        }