Example #1
0
 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;
 }
Example #2
0
 public void RunWithScene(MGScene scene)
 {
     this._runningScene = scene;
 }