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

public class trampaBebe : MonoBehaviour {

    public Transform bebe;

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.tag.Equals("Player"))
        {
            Transform baby = Instantiate(bebe, transform);
            baby.localPosition = new Vector3(18, -3, 0);
        }
    }
}
