using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class StartPlanetScript : PlanetScript {

	public Collider2D myCollider;

	public static StartPlanetScript instance;
	public GameObject player;

	// Use this for initialization
	void Start () {
		instance = this;
		listExplosions = new List<GameObject> ();
		StartCoroutine ("spawnExplosions");
	}
	
	// Update is called once per frame
	void Update () {
	}

	public override void PrepareToDestroyYourself(){
		player.GetComponent<PlayerScript> ().ExitOrbit ();
		base.PrepareToDestroyYourself ();
	}

}
