Пример #1
0
        void IncrementDestinationIfOnCurrentDestinationTile()
        {
            TDTile currentTile     = map.GetTileForWorldPosition(transform.position);
            TDTile destinationTile = map.GetTileForWorldPosition(destination);

            if (currentTile.Equals(destinationTile))
            {
                SetDestination(GetNextDestination());
            }
        }