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

public class center_of_planet : MonoBehaviour {

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	void OnCollisionEnter2D(Collision2D coll) {
		if(coll.gameObject.tag == "Enemy")
		{
			var exp = GetComponentInChildren<ParticleSystem>();
			exp.Play();
			Destroy(transform.parent.gameObject);
		}
	}
}
