void OnCollisionEnter2D(Collision2D other) { BasicShot bs = other.gameObject.GetComponent <BasicShot>(); if (bs == null) { return; } bs.Kill(); }
void OnTriggerEnter2D(Collider2D other) { BasicShot bs = other.gameObject.GetComponent <BasicShot>(); if (bs == null) { return; } bs.Kill(); Damage(); }