void Start() { Vector3[] points = null; MathematicsHelper.UniformSampleInTriangle(num, p1, p2, p3, out points); for (int i = 0; i < num; i++) { GameObject newGo = GameObject.Instantiate(go, points[i], Quaternion.identity, transform); newGo.transform.localScale = Vector3.one * 0.1f; } }
static void Main(string[] args) { // The next line will not compile, comment // it out to test the next bit MathematicsHelper a = new MathematicsHelper(); // This next block will work int b = 10; int c = 20; int highest = MathematicsHelper.returnHigher(b, c); Console.Out.WriteLine("Highest between {0} and {1} is {2}.", b, c, highest); }