﻿using UnityEngine;

namespace Gamelogic.Grids.Examples
{
	public class MatchMakerCell : SpriteCell
	{
		private int occupantColor;
		private GameObject occupant;

		public int OccupantColor { get; set; }

		public GameObject Occupant { get; set; }

		public bool IsAccessible()
		{
			return (Occupant == null);
		}

		public override void SetAngle(float angle)
		{
			base.SetAngle(angle);

			transform.FindChild("Specular").SetLocalRotationZ(angle);
			transform.FindChild("Shadow").SetLocalRotationZ(angle);
		}
	}
}