Commit 825a9042 by Alisa Jung

forgot to remove shield from parent before destroying shield

parent c73f6fd0
......@@ -30,6 +30,7 @@ public class ShieldScript : MonoBehaviour {
void stopShielding()
{
if (parentHealth != null) parentHealth.setShield(false);
Destroy(gameObject);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment