basically the whole game
This commit is contained in:
parent
949135cecb
commit
96dcfa9064
315 changed files with 34386 additions and 396 deletions
13
Assets/Scripts/Projectiles/ClearingProjectile.cs
Normal file
13
Assets/Scripts/Projectiles/ClearingProjectile.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class ClearingProjectile : Projectile
|
||||
{
|
||||
protected override void OnTriggerEnter2D(Collider2D other)
|
||||
{
|
||||
base.OnTriggerEnter2D(other);
|
||||
if (!other.CompareTag(tag) && other.TryGetComponent(out Projectile isProjectile))
|
||||
{
|
||||
Destroy(other.gameObject); //should it destroy or reflect?
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue