Beispiel #1
0
        void Awake()
        {
            if (characterActor != null)
            {
                normalMovement = characterActor.GetComponentInChildren <NormalMovement>();
            }

            HandleVisualObjects(showCapsule);

            Cursor.visible   = !hideAndConfineCursor;
            Cursor.lockState = hideAndConfineCursor ? CursorLockMode.Locked : CursorLockMode.None;
        }
Beispiel #2
0
        void Awake()
        {
            if (characterActor != null)
            {
                normalMovement = characterActor.GetComponentInChildren <NormalMovement>();
            }

            if (normalMovement != null && camera != null)
            {
                normalMovement.FollowExternalReference = camera.cameraMode == Camera3D.CameraMode.FirstPerson;
            }

            if (graphicsObject != null)
            {
                graphicsRenderers = graphicsObject.GetComponentsInChildren <Renderer>(true);
            }

            Cursor.visible   = !hideAndConfineCursor;
            Cursor.lockState = hideAndConfineCursor ? CursorLockMode.Locked : CursorLockMode.None;
        }