Ejemplo n.º 1
0
        private void Init()
        {
            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_ramMonitor = GetComponent <G_RamMonitor>();

            m_shaderGraphAllocated = new G_GraphShader();
            m_shaderGraphReserved  = new G_GraphShader();
            m_shaderGraphMono      = new G_GraphShader();

            m_shaderGraphAllocated.Image = m_imageAllocated;
            m_shaderGraphReserved.Image  = m_imageReserved;
            m_shaderGraphMono.Image      = m_imageMono;

            UpdateParameters();
        }
Ejemplo n.º 2
0
        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_ramMonitor = GetComponent <G_RamMonitor>();

            UpdateParameters();
        }