2using System.Collections;
3using System.Collections.Generic;
25 Action onStepSkipped =
null)
27 Debug.Log(
"SetVoiceOverVolume : IStep VO:" +
function.value);
31 if (
function.additionalValues.Length == 0)
33 Debug.LogError(
"Audio additionalValues value not added");
38 var volume =
function.additionalValues[0];
39 var fxName =
function.value;
41 if (
string.IsNullOrEmpty(fxName))
43 Debug.LogError(
"FxName is empty");
48 if (
string.IsNullOrEmpty(volume))
50 Debug.LogError(
"Audio volume value is empty");
55 float volumeValue =
float.Parse(volume, System.Globalization.CultureInfo.InvariantCulture);
Main logic for playing fxs and voice overs.
void SetSfxVolume(int audioID, float volume)
Set fx volume by audio id.
Unity components communication service.
Change general fxs volume function.
void FunctionFinished()
Called to end current step and start a next one.
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
Action OnFunctionFinished
readonly AudioService _audioService
Basic interface of functions. (Please note that iStep is a wrong name)