i'm dumb lol

This commit is contained in:
Slaith 2022-03-26 17:42:50 -07:00
parent abf86b4258
commit b9c02eb039

View file

@ -52,7 +52,7 @@ namespace HeavenStudio.Games
private void Awake() private void Awake()
{ {
instance = this;// Finding grass sprite width for grass scrolling. instance = this;// Finding grass sprite width for grass scrolling.
farmer.Init() farmer.Init();
var grassSprite = grass.sprite; var grassSprite = grass.sprite;
var borderLeft = grassSprite.rect.xMin + grassSprite.border.x; var borderLeft = grassSprite.rect.xMin + grassSprite.border.x;
var borderRight = grassSprite.rect.xMax - grassSprite.border.z; var borderRight = grassSprite.rect.xMax - grassSprite.border.z;