Esempio n. 1
0
        public void CalcNeighborIndexes()
        {
            var ids = HexUtils.GetNeighborHexIndexes(targetIndex);

            string str = string.Empty;

            foreach (var i in ids)
            {
                str += string.Format("{0}, ", i);
            }

            Debug.LogFormat("TargetIndex:{0} Neighbors:{1}", targetIndex, str);
        }