2026-05-21 23:37:34 +09:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace VRSDK
|
|
|
|
|
{
|
|
|
|
|
//this is code for the demo wall cube
|
|
|
|
|
public class WallCube : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
[SerializeField] private float resetTime = 1.0f;
|
|
|
|
|
|
|
|
|
|
private WallCubePart[] wallCubePartArray = null;
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
wallCubePartArray = transform.GetComponentsInChildren<WallCubePart>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Reset()
|
|
|
|
|
{
|
|
|
|
|
for (int n = 0; n < wallCubePartArray.Length; n++)
|
|
|
|
|
{
|
2026-05-26 18:54:56 +09:00
|
|
|
wallCubePartArray[n].ResetPart( resetTime );
|
2026-05-21 23:37:34 +09:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|