mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Fixed barrel break not working
This commit is contained in:
parent
030837d3c9
commit
e6373b5d26
2 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,7 @@ namespace HeavenStudio.Games.Scripts_KarateMan
|
|||
|
||||
public GameObject shadow;
|
||||
|
||||
private void Awake()
|
||||
public void Init()
|
||||
{
|
||||
SpriteRenderer = this.gameObject.GetComponent<SpriteRenderer>();
|
||||
SpriteRenderer.sprite = KarateMan.instance.BarrelSprites[spriteIndex];
|
||||
|
|
|
@ -410,6 +410,7 @@ namespace HeavenStudio.Games.Scripts_KarateMan
|
|||
bde.spriteIndex = 4;
|
||||
break;
|
||||
}
|
||||
bde.Init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue