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

public class Tile : MonoBehaviour {

	#region variables
	protected Renderer _renderer;
	protected Color _defaultColor;
	#endregion


	#region getters and setters
	public Color DefaultColor {
		get {
			return _defaultColor;
		}
	}
	#endregion


	#region events
	void Awake () {

		_renderer = GetComponentInChildren <Renderer> ();
		_defaultColor = _renderer.material.color;
		
	}
	#endregion


	#region methods
	public Material GetMaterial () {

		return _renderer.material;

	}
	#endregion
	
}
