using UnityEngine;
using System.Collections;

public class Toggle : MonoBehaviour
{

		public int ID;
		private SpriteRenderer renderer;
		public Sprite sprite;
		
		void Start ()
		{
				renderer = this.GetComponentInChildren<SpriteRenderer> ();
		}
		public void toggle ()
		{
				this.gameObject.collider.enabled = true;
				renderer.sprite = sprite;
		}
}
