コード例 #1
0
 /// <summary>
 /// Corutine to rebuild parts of a PQS sphere
 /// </summary>
 public static IEnumerator RebuildSphere(PQ[] quads, PQS pqs)
 {
     for (Int32 i = 0; i < quads.Length; i++)
     {
         PQ quad = quads[i];
         quad.isBuilt = false;
         quad.isBuilt = pqs.BuildQuad(quad);
         pqs.GetType().GetMethod("UpdateEdgeNormals", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(pqs, new[] { quad });
         yield return null;
     }
 }