public IEnumerator RunAgain()
        {
            ISignaling mock = new MockSignaling();

            component.runOnAwake = false;
            component.gameObject.SetActive(true);
            component.Run(signaling: mock);
            yield return(0);

            component.Stop();
            yield return(0);

            component.Run(signaling: mock);
        }
예제 #2
0
        public IEnumerator RunAgain()
        {
            var        handler  = component.gameObject.AddComponent <SingleConnection>();
            var        handlers = new SignalingHandlerBase[] { handler };
            ISignaling mock     = new MockSignaling();

            component.runOnAwake = false;
            component.gameObject.SetActive(true);
            component.Run(signaling: mock, handlers: handlers);
            yield return(0);

            component.Stop();
            yield return(0);

            component.Run(signaling: mock, handlers: handlers);
        }