private void Start() { if (!_patternLock) { _patternLock = GetComponent <PatternLock>(); } foreach (var nodeController in _patternLock.NodeControllers) { var tmPro = nodeController.GetComponentInChildren <TextMeshPro>(); tmPro.text = _patternLock.NodeMap[nodeController].Name; _tmPros.Add(tmPro); } }
private void Start() { _patternLock = transform.parent.parent.GetComponent <PatternLock>(); }