Пример #1
0
        void Update()
        {
            if (!hasAuthority)
            {
                return;
            }

            var ltow = transform.localToWorldMatrix;

            movement.Move(ltow.MultiplyVector(playerInput.Move().XZ()));
            movement.Look(cameraTransform.forward);
            movement.Jump(playerInput.Jump());

            combatController.Fire(playerInput.Fire());

            cameraController.Look(playerInput.Look());

            playerView.SetScore(combatController.hits);
        }