Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- #if UNITY_EDITOR
- using UnityEditor;
- #endif
- namespace AC
- {
- [System.Serializable]
- public class ChangeNarrationTextSound : Action
- {
- public string CharacterNarrating = null;
- public ChangeNarrationTextSound ()
- {
- this.isDisplayed = true;
- category = ActionCategory.Custom;
- title = "Change Narration Text Sound";
- description = "Changes the sound used when generating narration text.";
- }
- override public float Run ()
- {
- string CharacterNarrating = param AudioClip AC.KickStarter.speechManager.narrationTextScrollClip;
- if (CharacterNarrating = "Sarah")
- {
- param AudioClip AC.KickStarter.speechManager.narrationTextScrollClip = SarahNarrator.ogg
- }
- if (CharacterNarrating = "Arthur")
- {
- param AudioClip AC.KickStarter.speechManager.narrationTextScrollClip = ArthurNarrator.ogg
- }
- else
- {
- isRunning = false;
- return 0f;
- }
- }
- #if UNITY_EDITOR
- override public void ShowGUI ()
- {
- AfterRunningOption ();
- }
- public override string SetLabel ()
- {
- string labelAdd = "";
- return labelAdd;
- }
- #endif
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement