Beispiel #1
0
        private void FixedUpdate()
        {
            Rect worldBounds = tileWorld.Bounds;

            ClampPlayerToBounds(worldBounds);
            MoveCameraToPosition(playerController.transform.position, worldBounds);
            FadeLights();

            backgroundController.Scroll(Time.fixedDeltaTime);
        }