Advertisement
Guest User

Untitled

a guest
Sep 1st, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. // (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
  2.  
  3. using UnityEngine;
  4.  
  5. namespace HutongGames.PlayMaker.Actions
  6. {
  7. [ActionCategory(ActionCategory.Audio)]
  8. [Tooltip("Plays the Corresponding Audio from the AudioToolkit.")]
  9. public class AudioToolKit : FsmStateAction
  10. {
  11. //[CheckForComponent(typeof(GUIText))]
  12. public FsmString clipName;
  13.  
  14. public override void Reset()
  15. {
  16. clipName = "";
  17. }
  18.  
  19. public override void OnEnter()
  20. {
  21. if (clipName == null)
  22. {
  23. Finish();
  24. }
  25. else
  26. {
  27. AudioController.Play( clipName );
  28. //AudioController.PlayMusic ( clipName );
  29. //AudioController.PlayMusicPlaylist ();
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement