Game Development Reference
In-Depth Information
4. Finally, in the Awake function, we update the min and max values using the tex-
ture size and camera real-world bounds. This is done using the following lines of
code:
// Automatically set the min and max values
minXAndY.x = backgroundBounds.min.x -
camTopLeft.x;
maxXAndY.x = backgroundBounds.max.x -
camBottomRight.x;
In the end, it is up to your specific implementation for the type of game you are making to
decide which pattern works for your game.
Search WWH ::




Custom Search