Esempio n. 1
0
        public void OnPlayerConnect(Player player, IVehicleRepository vehiclesRepository, IWorldService worldService)
        {
            Console.WriteLine("I connected! " + player.Entity);

            player.AddComponent <TestComponent>();

            _zone.Show(player.Entity);
            _welcome.Show(player.Entity);

            vehiclesRepository.FooForPlayer(player.Entity);

            var obj = worldService.CreatePlayerObject(player, 16638, new Vector3(50, 10, 40), Vector3.Zero, 1000);

            obj.DisableCameraCollisions();
        }
Esempio n. 2
0
        public void OnPlayerConnect(Player player, IVehicleRepository vehiclesRepository, IWorldService worldService)
        {
            var obj = worldService.CreatePlayerObject(player, 16638, new Vector3(50, 10, 40), Vector3.Zero, 1000);

            obj.DisableCameraCollisions();
        }