summaryrefslogtreecommitdiff
path: root/ROUNDS/SoundImplementation/SoundHierarchySpawn.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ROUNDS/SoundImplementation/SoundHierarchySpawn.cs')
-rw-r--r--ROUNDS/SoundImplementation/SoundHierarchySpawn.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/ROUNDS/SoundImplementation/SoundHierarchySpawn.cs b/ROUNDS/SoundImplementation/SoundHierarchySpawn.cs
new file mode 100644
index 0000000..02e84db
--- /dev/null
+++ b/ROUNDS/SoundImplementation/SoundHierarchySpawn.cs
@@ -0,0 +1,37 @@
+using System;
+using Sonigon;
+using UnityEngine;
+
+namespace SoundImplementation;
+
+[Serializable]
+public class SoundHierarchySpawn
+{
+ public SoundPolyGrouping soundPolyGrouping = SoundPolyGrouping.perPlayer;
+
+ [Header("Sound Parent")]
+ public SoundEvent soundParent;
+
+ public bool soundParentVelocityToIntensity;
+
+ public SoundEvent soundParentStopOnDisable;
+
+ [Header("Sound Child")]
+ public SoundEvent soundChild;
+
+ public bool soundChildVelocityToIntensity;
+
+ [Header("Sound Child Child")]
+ public SoundEvent soundChildChild;
+
+ public SoundEvent soundChildChildStopOnDisable;
+
+ public bool IfAnySoundIsNotNull()
+ {
+ if (soundParent != null || soundParentStopOnDisable != null || soundChild != null || soundChildChild != null || soundChildChildStopOnDisable != null)
+ {
+ return true;
+ }
+ return false;
+ }
+}