Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
- using UnityEngine;
- namespace HutongGames.PlayMaker.Actions
- {
- [ActionCategory(ActionCategory.Audio)]
- [Tooltip("Plays the Corresponding Audio from the AudioToolkit.")]
- public class AudioToolKit : FsmStateAction
- {
- //[CheckForComponent(typeof(GUIText))]
- public FsmString clipName;
- public override void Reset()
- {
- clipName = "";
- }
- public override void OnEnter()
- {
- if (clipName == null)
- {
- Finish();
- }
- else
- {
- AudioController.Play( clipName );
- //AudioController.PlayMusic ( clipName );
- //AudioController.PlayMusicPlaylist ();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement