示例#1
0
        private void Init()
        {
            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_ramMonitor = GetComponent <RamMonitor>();

            m_shaderGraphAllocated = new ShaderGraph();

            m_shaderGraphAllocated.Material = m_imageAllocated.material;

            m_shaderGraphAllocated.InitializeShader();

            m_shaderGraphReserved = new ShaderGraph();

            m_shaderGraphReserved.Material = m_imageReserved.material;

            m_shaderGraphReserved.InitializeShader();

            m_shaderGraphMono = new ShaderGraph();

            m_shaderGraphMono.Material = m_imageMono.material;

            m_shaderGraphMono.InitializeShader();

            UpdateParameters();
        }
示例#2
0
        private void Init()
        {
            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_ramMonitor = GetComponent <RamMonitor>();

            m_sb = new StringBuilder();

            UpdateParameters();
        }
示例#3
0
        private void Init()
        {
            if (!FloatString.Inited || FloatString.minValue > -1000f || FloatString.maxValue < 16384f)
            {
                FloatString.Init(-1001f, 16386f);
            }

            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_ramMonitor = GetComponent <RamMonitor>();

            UpdateParameters();
        }
示例#4
0
        private void Init()
        {
            //TODO: Replace this with one activated from the core and figure out the min value.
            if (!FloatString.Inited || FloatString.MinValue > -1000f || FloatString.MaxValue < 16384f)
            {
                FloatString.Init(-1001f, 16386f);
            }

            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_ramMonitor = GetComponent <RamMonitor>();

            UpdateParameters();
        }