Enemies half done

This commit is contained in:
Gerard Gascón 2023-08-22 20:12:53 +02:00
parent eaa8cdd462
commit 16507f4121
93 changed files with 31744 additions and 119 deletions

View file

@ -8,9 +8,11 @@ public abstract class BulletStats : MonoBehaviour{
[HideInInspector] public int maxBounces = 3;
protected Rigidbody2D Rb { get; private set; }
protected SpriteRenderer Sprite { get; private set; }
protected virtual void Start() {
Rb = GetComponent<Rigidbody2D>();
Sprite = GetComponent<SpriteRenderer>();
BalanceCanvas.instance.sliderChangedCallback += RefreshStats;
RefreshStats();