コード例 #1
0
        public void AddOcean(Vector2 point)
        {
            var side = WorldSide.getSideOfWorld(point);

            if (!oceans.Contains(side))
            {
                oceans.Add(side);
                //// clear ocean bottom
                terrainField.ChangeValue(new Vector4(oceanDepth * -1f, 0f, 0, 0f), side.getPartOfMap(oceanWidth));
            }
        }
コード例 #2
0
 public void RaiseLand()         //added by Liam
 {
     terrainField.ChangeValue(new Vector4(10f, 0f, 0f, 0f), WorldSide.EntireMap.getArea());
 }