Commit cb6b9e25 by Tim Reiter
parents 7d2249aa 454f146f
......@@ -46,6 +46,7 @@ public class FireScript : MonoBehaviour
{
CancelInvoke("stopBurning");
parentHealth = null;
transform.parent = null;
transform.position = new Vector2(100, 100);
Invoke("Activate", respawnTime);
}
......
......@@ -41,6 +41,7 @@ public class ShieldScript : MonoBehaviour
CancelInvoke("stopShielding");
if (parentHealth != null) parentHealth.setShield(false);
parentHealth = null;
transform.parent = null;
transform.position = new Vector2(100, 100);
Invoke("Activate", respawnTime);
}
......
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