For easier viewing download code from my code page or copy and paste into your IDE.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface IDirections
{
public const int UP = 0;
public const int RIGHT = 1;
public const int DOWN = 2;
public const int LEFT = 3;
}