Esempio n. 1
0
    public void GetsMostCommonVertex()
    {
        District d = new District(Vector3.zero, new Vector3[] { Vector3.up, Vector3.zero, Vector3.right }, new DistrictConfiguration());
        District e = new District(Vector3.zero, new Vector3[] { Vector3.left, Vector3.right, Vector3.back }, new DistrictConfiguration());

        Assert.AreEqual(Vector3.right, GenerationUtility.GetMostCommonVertex(new District[] { d, e }));
    }