well it works

This commit is contained in:
reisenlol 2026-01-11 21:27:27 -08:00
parent 6ff1531662
commit af9b1a7448
No known key found for this signature in database
11 changed files with 563 additions and 13 deletions

View file

@ -10,6 +10,13 @@ public class Projectile : MonoBehaviour
public float speed;
public int pierceAmount;
private int currentPierce;
public float destructionTime;
private void Start()
{
Destroy(gameObject, destructionTime);
}
private void FixedUpdate()
{
rb.linearVelocity = transform.right * speed;
@ -32,4 +39,9 @@ public class Projectile : MonoBehaviour
}
}
}
private void OnDestroy()
{
TurnHandler.instance.UpdateTurns();
}
}