private void Init() { m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_rectTransform = GetComponent <RectTransform>(); m_audioGraph = GetComponent <G_AudioGraph>(); m_audioMonitor = GetComponent <G_AudioMonitor>(); m_audioText = GetComponent <G_AudioText>(); foreach (Transform child in transform) { if (child.parent == transform) { m_childrenGameObjects.Add(child.gameObject); } } }
private void Init() { m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_audioMonitor = GetComponent <G_AudioMonitor>(); m_shaderGraph = new G_GraphShader { Image = m_imageGraph }; m_shaderGraphHighestValues = new G_GraphShader { Image = m_imageGraphHighestValues }; UpdateParameters(); }
private void Init() { //TODO: Replace this with one activated from the core and figure out the min value. if (!G_FloatString.Inited || G_FloatString.MinValue > -1000f || G_FloatString.MaxValue < 16384f) { G_FloatString.Init ( minNegativeValue: -1001f, maxPositiveValue: 16386f ); } m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_audioMonitor = GetComponent <G_AudioMonitor>(); UpdateParameters(); }