Exemple #1
0
 void Reset() {
     transform.position = _origin;
     foreach (Transform child in _floorGrid.transform) {
         PlateCube script = child.Find("PlateCube").gameObject.GetComponent<PlateCube>();
         script.SetInactive();
     }
 }
Exemple #2
0
 private void OnTriggerExit(Collider other)
 {
     foreach (string cube in _runtimeData._solveCubes)
     {
         PlateCube script = GameObject.Find(cube).transform.Find("PlateCube").gameObject.GetComponent <PlateCube>();
         script.SetInactive();
     }
     _runtimeData._showingSolution = false;
 }