public void Start() { if (debugPanel != null) { debugPanelController = debugPanel.GetComponent <DebugPanelController>(); } if (infoMappingQualityTextParent != null) { infoMappingQualityText = infoMappingQualityTextParent.transform.GetChild(1).GetComponent <Text>(); } if (infoStatusParent != null) { infoMode = infoStatusParent.transform.GetChild(1).GetComponent <Text>(); infoStatus = infoStatusParent.transform.GetChild(3).GetComponent <Text>(); } }
private void Awake() { _instance = this; if (debugPanel != null) { debugPanelController = debugPanel.GetComponent <DebugPanelController>(); } if (infoMappingQualityTextParent != null) { infoMappingQualityText = infoMappingQualityTextParent.transform.GetChild(1).GetComponent <Text>(); } if (infoStatusParent != null) { infoMode = infoStatusParent.transform.GetChild(1).GetComponent <Text>(); infoStatus = infoStatusParent.transform.GetChild(3).GetComponent <Text>(); } }