コード例 #1
0
        public GameObject GetProp(float x, float z)
        {
            if (propDistribution == null)
            {
                propDistribution = new Noise(propDistributionScale, TotalPropWeight - 1, 666);
            }

            return(GetPropForWeight(propDistribution.At(x, z)));
        }
コード例 #2
0
        // Getters

        public int GetHeight(float x, float z) => heightMap.At(x, z);