Beispiel #1
0
        public override void InstallBindings()
        {
            CarId = 0;

            base.InstallBindings();
            PlayerControlledInstaller.Install(Container);

            PhotonInputInstaller.Install(Container);
            Container.BindInterfacesAndSelfTo <InputInstantiator>().AsSingle();
        }
Beispiel #2
0
        public override void InstallBindings()
        {
            Container.Bind <CarDeathHandler>().To <PlayerChaserDeathHandler>().AsSingle();

            base.InstallBindings();

            PhotonInputInstaller.Install(Container);
            Container.BindInterfacesAndSelfTo <InputInstantiateHandler>().AsSingle();
            Container.BindInterfacesAndSelfTo <InputFactory>().AsSingle();

            PhotonCarInstaller.Install(Container, CarObject);
            Container.BindInterfacesAndSelfTo <CarInstantiator>().AsSingle().WithArguments(PlayerType.Chaser, false, PlayerController.OwnerId);
        }