mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 19:55:09 +00:00
commit
b034d50f1b
2 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ namespace HeavenStudio.Games
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
instance = this;
|
instance = this;
|
||||||
|
InitLions();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitLions()
|
private void InitLions()
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue