Fixed barrel break not working

This commit is contained in:
Slaith 2022-03-27 18:23:59 -07:00
parent 8960d9da55
commit 71e4e9c1f6
2 changed files with 2 additions and 1 deletions

View file

@ -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];

View file

@ -410,6 +410,7 @@ namespace HeavenStudio.Games.Scripts_KarateMan
bde.spriteIndex = 4;
break;
}
bde.Init();
}
}
}