Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task Flash(int soundIndex)
- {
- try
- {
- await RunActionAsync(new CCFadeIn(.2f));
- }
- catch (Exception ex)
- {
- Debug.WriteLine(ex.Message);
- }
- if (GameController.Current.PlayEffects)
- CCAudioEngine.SharedEngine.PlayEffect(soundIndex.ToString());
- await RunActionAsync(new CCFadeOut(.2f));
- return;
- }
Add Comment
Please, Sign In to add comment