• entries
    359
  • comments
    237
  • views
    188320

I am a naughty monkey.

Sign in to follow this  
Telastyn

103 views


public static void KickOff() {
basero icc = image_manager.manager.Load("StudioLogo");
icc.rerect(new identical_rect(ro_root.guiroot.tblr));
renderable.AlphaFadeEffect Fader = new renderable.AlphaFadeEffect(icc);
Fader.OnEnd += delegate() {
baseso moo = sound_manager.manager.Load("moo");
moo.OnEnd += delegate(baseso src) {
renderable.AlphaFadeEffect DeFader = new renderable.AlphaFadeEffect(icc, true);
DeFader.OnEnd += TransitionTwo;
};
moo.Play();
};
Fader.push_onto(ro_root.guiroot);
}



Oddly enough (if perhaps slightly unsuprising), the nested anonymous delegates behave properly. The logo fades in, "moo" is played, and then the logo fades out.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now