Browse Source

fixed audio count & sit added

main
cailean 7 months ago
parent
commit
06543cd6c7
  1. 6
      Assets/4_Audio/Audio Script/AudioManager.cs
  2. 8
      Assets/6_Scenes/Beep.unity
  3. 2
      Assets/ML-Agents/Timers/Beep_timers.json

6
Assets/4_Audio/Audio Script/AudioManager.cs

@ -29,8 +29,10 @@ public class AudioManager : MonoBehaviour
if (magnitude > match.m_VelcoityMin && match != null) if (magnitude > match.m_VelcoityMin && match != null)
{ {
AudioClip randomPick = match.m_AudioClip[Random.Range(0, m_AudioObjects.Count - 1)]; Debug.Log($"{match.m_AudioClip.Count}");
int randomClip = (int) Random.Range(0, match.m_AudioClip.Count - 1);
AudioClip randomPick = match.m_AudioClip[randomClip];
// Play sound // Play sound
if (randomPick != null) if (randomPick != null)
{ {

8
Assets/6_Scenes/Beep.unity

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 18710.33, g: 22253.816, b: 24966.049, a: 1} m_IndirectSpecularColor: {r: 18716.479, g: 22260.361, b: 24973.613, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -392,7 +392,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 155411616} m_GameObject: {fileID: 155411616}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0.032237124, y: 0.96677077, z: -0.15566999, w: 0.200205} m_LocalRotation: {x: 0.032237124, y: 0.96677077, z: -0.15566997, w: 0.200205}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -1212,7 +1212,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 377437129} m_GameObject: {fileID: 377437129}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0.037838772, y: 0.8817097, z: -0.071784794, w: -0.46476156} m_LocalRotation: {x: -0.03783877, y: 0.8817097, z: -0.07178479, w: -0.46476156}
m_LocalPosition: {x: -128.4, y: 13, z: -248.6} m_LocalPosition: {x: -128.4, y: 13, z: -248.6}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -3001,7 +3001,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1178814724} m_GameObject: {fileID: 1178814724}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0.020202018, y: 0.9790844, z: -0.16078894, w: 0.12301517} m_LocalRotation: {x: 0.020202018, y: 0.9790844, z: -0.16078894, w: 0.123015165}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0

2
Assets/ML-Agents/Timers/Beep_timers.json

@ -1 +1 @@
{"count":1,"self":24.587307199999998,"total":24.8853893,"children":{"InitializeActuators":{"count":1,"self":0.0020222,"total":0.0020222,"children":null},"InitializeSensors":{"count":1,"self":0.001508,"total":0.001508,"children":null},"AgentSendState":{"count":950,"self":0.0141855,"total":0.0448497,"children":{"CollectObservations":{"count":190,"self":0.0130963,"total":0.0130963,"children":null},"WriteActionMask":{"count":190,"self":0,"total":0,"children":null},"RequestDecision":{"count":190,"self":0.0175679,"total":0.0175679,"children":null}}},"DecideAction":{"count":950,"self":0.2391702,"total":0.241677,"children":{"RayPerceptionSensor.Perceive":{"count":190,"self":0.0025068,"total":0.0025068,"children":null}}},"AgentAct":{"count":950,"self":0.0080247,"total":0.0080247,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1710512164","unity_version":"2023.2.8f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2023.2.8f1\\Editor\\Unity.exe -projectpath C:\\Users\\caile\\Desktop\\Projects\\24_02-Beep\\4_Unity\\Beep Final Git\\beep-final -useHub -hubIPC -cloudEnvironment production","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.3.0-exp.3","scene_name":"Beep","end_time_seconds":"1710512189"}} {"count":1,"self":14.552531199999999,"total":14.7433307,"children":{"InitializeActuators":{"count":1,"self":0.0010002,"total":0.0010002,"children":null},"InitializeSensors":{"count":1,"self":0.0015033,"total":0.0015033,"children":null},"AgentSendState":{"count":438,"self":0.0095424999999999989,"total":0.0308739,"children":{"CollectObservations":{"count":88,"self":0.0050368,"total":0.0050368,"children":null},"WriteActionMask":{"count":88,"self":0,"total":0,"children":null},"RequestDecision":{"count":88,"self":0.0162946,"total":0.0162946,"children":null}}},"DecideAction":{"count":438,"self":0.1468667,"total":0.1468667,"children":{"RayPerceptionSensor.Perceive":{"count":88,"self":0,"total":0,"children":null}}},"AgentAct":{"count":438,"self":0.0090435999999999989,"total":0.0090435999999999989,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1710851850","unity_version":"2023.2.8f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2023.2.8f1\\Editor\\Unity.exe -projectpath C:\\Users\\caile\\Desktop\\Projects\\24_02-Beep\\4_Unity\\Beep Final Git\\beep-final -useHub -hubIPC -cloudEnvironment production","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.3.0-exp.3","scene_name":"Beep","end_time_seconds":"1710851865"}}
Loading…
Cancel
Save