public static MGTransition InitWithDuartion(float duration, MGScene inScene) { var transition = new MGTransition(); transition.Elapsed = 0f; transition.InScene = inScene; transition.Duration = duration; transition.OutScene = MGDirector.SharedDirector().RunningScene; transition.AddChild(transition.InScene); transition.AddChild(transition.OutScene); return transition; }
public void RunWithScene(MGScene scene) { this._runningScene = scene; }