﻿using UnityEngine;
using System.Collections;

public class OstrovLetak_Dop : MonoBehaviour {

	void OnCollisionEnter2D (Collision2D col){
		if (col.gameObject.tag == "Player") {
			col.transform.parent = transform;
		}
	}
	void OnCollisionExit2D (Collision2D col){
		if (col.gameObject.tag == "Player") {
			col.transform.parent = null;
		}
	}
}
