mirror of
https://github.com/SDraw/ml_mods_cvr.git
synced 2026-05-04 17:27:00 +00:00
Impact sounds
This commit is contained in:
parent
15de34c0bd
commit
2a06001100
23 changed files with 401 additions and 96 deletions
|
|
@ -5,12 +5,14 @@ namespace ml_prm
|
|||
public class PlayerRagdollMod : MelonLoader.MelonMod
|
||||
{
|
||||
RagdollController m_controller = null;
|
||||
SoundManager m_soundManager = null;
|
||||
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
Settings.Init();
|
||||
GameEvents.Init(HarmonyInstance);
|
||||
WorldManager.Init();
|
||||
ResourcesHandler.ExtractResources();
|
||||
}
|
||||
|
||||
public override void OnLateInitializeMelon()
|
||||
|
|
@ -26,6 +28,8 @@ namespace ml_prm
|
|||
yield return null;
|
||||
|
||||
m_controller = new UnityEngine.GameObject("[PlayerRagdollMod]").AddComponent<RagdollController>();
|
||||
m_soundManager = new SoundManager(m_controller.transform);
|
||||
m_soundManager.LoadSounds();
|
||||
}
|
||||
|
||||
System.Collections.IEnumerator WaitForWhitelist()
|
||||
|
|
@ -40,6 +44,8 @@ namespace ml_prm
|
|||
{
|
||||
WorldManager.DeInit();
|
||||
|
||||
m_soundManager = null;
|
||||
|
||||
if(m_controller != null)
|
||||
UnityEngine.Object.Destroy(m_controller.gameObject);
|
||||
m_controller = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue