コード例 #1
0
        static List <Vector2> Generate_RandomPoints(float radius = 1f, int rejectionSamples = 30)
        {
            var points = RandomCirclePositionGeneration.GeneratePoints(radius,
                                                                       new Vector2(Camera.main.transform.position.x * 2, Camera.main.transform.position.y * 2),
                                                                       rejectionSamples);

            return(points);
        }
コード例 #2
0
 void OnValidate()
 {
     points = RandomCirclePositionGeneration.GeneratePoints(radius, regionSize, rejectionSamples);
 }