デバッグ表示削除

This commit is contained in:
kimura 2022-08-03 14:23:31 +09:00
parent cf8272c918
commit 0d40e5a183
1 changed files with 0 additions and 17 deletions

View File

@ -59,23 +59,6 @@ namespace MyGame.Scenes.MiniGame.Scripts
var fenceRight2 = fenceRight - fenceStep2;
var maskLeft = Mathf.CeilToInt((fenceRight2 - xPos.x) / fenceStep) * -fenceStep + fenceRight2;
var maskRight = Mathf.FloorToInt((fenceRight - xPos.y) / fenceStep) * -fenceStep + fenceRight;
foreach (var x in new []{xPos.x, xPos.y})
{
var sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere);
sphere.GetComponent<MeshRenderer>().material.color = Color.blue;
sphere.transform.SetLocalScale(.4f);
sphere.transform.SetPositionX(x);
sphere.transform.SetPositionZ(-5f);
}
foreach (var x in new []{maskLeft, maskRight})
{
var sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere);
sphere.GetComponent<MeshRenderer>().material.color = Color.red;
sphere.transform.SetLocalScale(.4f);
sphere.transform.SetPositionX(x);
sphere.transform.SetPositionZ(-5f);
}
var maskWidth = maskRight - maskLeft;
var maskXPos = maskLeft + maskWidth / 2;
fenceMaskList[fenceMaskIndex].localScale += Vector3.right * maskWidth;