Пример #1
0
 private void Awake()
 {
     if (myWall == null)
     {
         myWall = GetComponentInChildren <CyrusWall>();
     }
 }
Пример #2
0
 private void Awake()
 {
     if (myCyrus == null)
     {
         myCyrus = GetComponentInChildren <CyrusWall>();
     }
     if (mySceneC == null)
     {
         mySceneC = FindObjectOfType <SceneController>();
     }
     if (myCyrus != null)
     {
         myCyrus.gameObject.SetActive(false);
     }
 }