2using System.Collections.Generic;
24 Action onStepSkipped =
null)
26 Debug.Log(
"SetVoiceOverVolume : IStep VO:" +
function.value);
30 if (
function.additionalValues.Length == 0)
32 Debug.LogError(
"Audio volume value not added");
37 var voiceOverVolume =
function.additionalValues[0];
39 if (
string.IsNullOrEmpty(voiceOverVolume))
41 Debug.LogError(
"Audio volume value is empty");
46 if (
float.TryParse(voiceOverVolume, out
float value))
53 Debug.LogError(
"Value is not number value");
Main logic for playing fxs and voice overs.
void SetRepeatableSoundVolume(float volume)
Set repeatable sound volume.
Unity components communication service.
Change general voice overs volume functions.
readonly AudioService _audioService
Action OnFunctionFinished
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
void FunctionFinished()
Called to end current step and start a next one.
Basic interface of functions. (Please note that iStep is a wrong name)