Commit 825a9042 by Alisa Jung

forgot to remove shield from parent before destroying shield

parent c73f6fd0
...@@ -30,6 +30,7 @@ public class ShieldScript : MonoBehaviour { ...@@ -30,6 +30,7 @@ public class ShieldScript : MonoBehaviour {
void stopShielding() void stopShielding()
{ {
if (parentHealth != null) parentHealth.setShield(false);
Destroy(gameObject); 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