Example #1
0
 public void Destroy(Action callback = null)
 {
     _destroy.Enter(callback);
 }
Example #2
0
 public void Resume(Action callback = null)
 {
     _resume.Enter(callback);
 }
Example #3
0
        /*============================================================================*/
        /* Public Functions                                                           */
        /*============================================================================*/

        public void Initialize(Action callback = null)
        {
            _initialize.Enter(callback);
        }
Example #4
0
 public void Suspend(Action callback = null)
 {
     _suspend.Enter(callback);
 }
Example #5
0
        public void lifecycle_events_are_dispatched()
        {
            List <string> actual   = new List <string>();
            List <string> expected = new List <string> {
                "preTransition",
                "transition",
                "postTransition"
            };

            transition.transition += delegate() {
                actual.Add("transition");
            };
            transition.preTransition += delegate() {
                actual.Add("preTransition");
            };
            transition.postTransition += delegate() {
                actual.Add("postTransition");
            };
            transition.Enter();
            Assert.That(actual, Is.EqualTo(expected).AsCollection);
        }