void OnTriggerEnter2D(Collider2D otherCollider)
{
// Is this a shot?
ShotScript shot = otherCollider.gameObject.GetComponent<ShotScript>();
if (shot != null)
{
if (charging) //only takes damage when charging
{
Destroy(shot.gameObject); // Remember to always target the game object, otherwise you will just remove the script
damage();
}
}
}