Commit a3f7e9dc by Philipp Adolf

Fix healing bullets not being removed on restart

parent 18662f9a
......@@ -267,7 +267,7 @@ public class PlayerControl : MonoBehaviour
{
case POWERUP_HEALINGBULLET:
GameObject bullet = Instantiate(healingBulletPrefab, pos, transform.rotation) as GameObject;
bullet.transform.parent = deleteAllChildrenAtRestart.parent;
bullet.transform.parent = deleteAllChildrenAtRestart;
bullet.GetComponent<Bullet>().shoot(new Vector2(dir, 0));
break;
default:
......
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