33 lines
813 B
C#
33 lines
813 B
C#
using HurricaneVR.Framework.Core;
|
|
using HurricaneVR.Framework.Core.Utils;
|
|
using UnityEngine;
|
|
using Zenject;
|
|
|
|
public class GlobalInstaller : MonoInstaller
|
|
{
|
|
[SerializeField]
|
|
private GameObject musicPlayerPrefab;
|
|
|
|
[SerializeField]
|
|
private GameObject hvrGlobalPrefab;
|
|
|
|
[SerializeField]
|
|
private GameObject playerPrefab;
|
|
|
|
public override void InstallBindings()
|
|
{
|
|
Container.Bind<MusicManager>()
|
|
.FromComponentInNewPrefab(musicPlayerPrefab)
|
|
.AsSingle();
|
|
|
|
Container.Bind<HVRManager>()
|
|
.FromComponentInNewPrefab(hvrGlobalPrefab)
|
|
.AsSingle()
|
|
.NonLazy();
|
|
|
|
Container.Bind<HVRObjectCollisionDisabler>()
|
|
.FromComponentInNewPrefab(playerPrefab)
|
|
.AsSingle()
|
|
.NonLazy();
|
|
}
|
|
} |