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

public class TrampaCasa : MonoBehaviour {
    
    public Animator casa;

	// Use this for initialization
	void Start () {

   
		
	}
	
	// Update is called once per frame
	void OnTriggerStay2D (Collider2D other)
    {
		if (other.tag.Equals("Player"))
        {
            //casa.transform.Rotate(new Vector3(10 + Time.deltaTime, 0, 0), Space.Self);
            casa.SetBool("casaTrampa", value: true);
           
        }

    }
}
