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

public class TrampaSaltona : MonoBehaviour {
    
    public Transform saltona;
    
    

    // Use this for initialization
    void Start()
    {

    }
  

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