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

public class OnOffOnContact : MonoBehaviour {
	public bool turnOn;
	public GameObject target;
	// Use this for initialization
	void OnTriggerEnter2D(Collider2D other){
		Debug.Log ("Entrou");
		target.SetActive (turnOn);
	}
}
