예제 #1
0
 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);
     }
 }
예제 #2
0
 private void Start()
 {
     _patternLock = transform.parent.parent.GetComponent <PatternLock>();
 }