well it works
This commit is contained in:
parent
6ff1531662
commit
af9b1a7448
11 changed files with 563 additions and 13 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue