void FixedUpdate() { if (end) { frame = 1000; } if (!isStart) { frame = 0; } if (0 <= frame && frame < start) { isPlaced = false; isChanged = false; testString = "start"; crossHair.SetActive(true); } if (start <= frame && frame < place) { testString = "place"; crossHair.SetActive(false); if (!isPlaced) { cubePlacer.PlaceInit(); cubePlacer.Place(); isPlaced = !isPlaced; } } if (place <= frame && frame < span) { testString = "span"; for (int i = 0; i < cubePlacer.objectNum; i++) { cubePlacer.placedObject[i].SetActive(false); } if (rnd) { if (expRand.RandomBool() < 10) { colorChange = true; outputBoolStr = "True"; } else { colorChange = false; outputBoolStr = "False"; } rnd = false; } } if (span <= frame && frame < change) { testString = "change"; if (!isChanged) { for (int i = 0; i < cubePlacer.objectNum; i++) { cubePlacer.placedObject[i].SetActive(true); } if (colorChange) { changeScript.ChangeColorRand(); } rnd = true; isChanged = !isChanged; } } if (change < frame) { cubePlacer.destroCubes(); testString = "select"; testText.SetActive(true); isSelecting = true; } frame++; timer += Time.deltaTime; }