Esempio n. 1
0
 protected void SetLocationType(MapHoneycomb honeycomb, MapHoneycomb.LocationTypes locationType)
 {
     if (locationType > honeycomb.LocationType)
     {
         honeycomb.LocationType = locationType;
         voidWalls.Add(honeycomb);
         //Debug.Log(voidWalls.Count);
     }
 }
Esempio n. 2
0
    protected void CheckDepth(float distance, MapHoneycomb honeycomb, MapHoneycomb.LocationTypes locationType)
    {
        int depth = (int)Mathf.Ceil(distance / Map.StaticMap.HorizontalSpacing);

        if (depth < honeycomb.GetDepth())
        {
            honeycomb.SetDepth(depth);
        }

        if (depth <= locationDepthThreshold)
        {
            SetLocationType(honeycomb, locationType);
        }
        else
        {
        }
    }