Fix build compilation problem with UnityEditor

Fix build compilation problem with using UnityEditor in the
HexgridGraphGenerator class.