private void Init() { m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_fpsMonitor = GetComponent <G_FpsMonitor>(); m_shaderGraph = new G_GraphShader { Image = m_imageGraph }; UpdateParameters(); }
private void Init() { m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_rectTransform = GetComponent <RectTransform>(); m_fpsGraph = GetComponent <G_FpsGraph>(); m_fpsMonitor = GetComponent <G_FpsMonitor>(); m_fpsText = GetComponent <G_FpsText>(); foreach (Transform child in transform) { if (child.parent == transform) { m_childrenGameObjects.Add(child.gameObject); } } }
private void Init() { //TODO: Replace this with one activated from the core and figure out the min value. if (!G_IntString.Inited || G_IntString.MinValue > m_minFps || G_IntString.MaxValue < m_maxFps) { G_IntString.Init ( minNegativeValue: m_minFps, maxPositiveValue: m_maxFps ); } m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_fpsMonitor = GetComponent <G_FpsMonitor>(); UpdateParameters(); }