Пример #1
0
        public void AfterTest()
        {
            _tactile.TestDestroy();

            _tactile = null;

            _spriteRenderer = null;
        }
Пример #2
0
        public void BeforeTest()
        {
            var initialObject = new GameObject();

            initialObject.AddComponent <AudioSource>();

            _spriteRenderer       = initialObject.AddComponent <SpriteRenderer>();
            _spriteRenderer.color = Color.cyan;

            _tactile = initialObject.AddComponent <TestTactileFeedbackTriggerResponseComponent>();
            _tactile.TriggerObject = new GameObject();
            _tactile.TriggerObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();
            _tactile.CancelAudioClip  = new AudioClip();
            _tactile.TriggerAudioClip = new AudioClip();
            _tactile.TriggerColor     = Color.grey;

            _tactile.TestAwake();
            _tactile.TestStart();
        }