private void Awake() { if (myWall == null) { myWall = GetComponentInChildren <CyrusWall>(); } }
private void Awake() { if (myCyrus == null) { myCyrus = GetComponentInChildren <CyrusWall>(); } if (mySceneC == null) { mySceneC = FindObjectOfType <SceneController>(); } if (myCyrus != null) { myCyrus.gameObject.SetActive(false); } }