Merge pull request #64 from Slaith12/main

fixing bugs from previous pr
This commit is contained in:
Jenny Crowe 2022-03-26 22:13:06 -07:00 committed by GitHub
commit b034d50f1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -30,6 +30,7 @@ namespace HeavenStudio.Games
private void Awake()
{
instance = this;
InitLions();
}
private void InitLions()

View file

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