public void Destroy(Action callback = null) { _destroy.Enter(callback); }
public void Resume(Action callback = null) { _resume.Enter(callback); }
/*============================================================================*/ /* Public Functions */ /*============================================================================*/ public void Initialize(Action callback = null) { _initialize.Enter(callback); }
public void Suspend(Action callback = null) { _suspend.Enter(callback); }
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); }