void Reset() { transform.position = _origin; foreach (Transform child in _floorGrid.transform) { PlateCube script = child.Find("PlateCube").gameObject.GetComponent<PlateCube>(); script.SetInactive(); } }
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; }