Skip to content
Snippets Groups Projects
Commit 99136326 authored by Raymond Chia's avatar Raymond Chia
Browse files

inhale audio fix

parent ad95625f
Branches
No related merge requests found
......@@ -4042,6 +4042,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 1953068991}
m_TargetAssemblyTypeName: UnityEngine.Behaviour, UnityEngine
m_MethodName: set_enabled
m_Mode: 6
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_AlphaFadeSpeed: 0.15
--- !u!114 &1785070522
MonoBehaviour:
......
......@@ -72,6 +72,7 @@ public class BlockObjectClass : MonoBehaviour
inhalePeriodTextInput.text = inhalePeriod.ToString();
}
float period = (float) Math.Round(inhalePeriod, 1);
String inhale_file = "inhale_" + period.ToString("0.0");
AudioClip clip = Resources.Load(inhale_file) as AudioClip;
InhaleAudio.clip = clip;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment