예제 #1
0
 private static void FixupRadii(PrivateArea pa, float radius)
 {
     Plugin.Log($"FixupRaddi called - {radius}");
     foreach (SphereCollider sphere in pa.GetComponents <SphereCollider>())
     {
         Plugin.Log("sphere adjusted");
         sphere.radius    = radius;
         sphere.isTrigger = true;
         sphere.enabled   = pa.IsEnabled();
         sphere.name      = Plugin.SphereColliderName;
     }
 }