Guest User

Untitled

a guest
Jan 16th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public async Task Flash(int soundIndex)
  2. {
  3. try
  4. {
  5. await RunActionAsync(new CCFadeIn(.2f));
  6. }
  7. catch (Exception ex)
  8. {
  9. Debug.WriteLine(ex.Message);
  10. }
  11.  
  12. if (GameController.Current.PlayEffects)
  13. CCAudioEngine.SharedEngine.PlayEffect(soundIndex.ToString());
  14.  
  15. await RunActionAsync(new CCFadeOut(.2f));
  16.  
  17. return;
  18. }
Add Comment
Please, Sign In to add comment