コード例 #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
ファイル: RamText.cs プロジェクト: Saarg/CivilDisorder
        private void Init()
        {
            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_ramMonitor = GetComponent <RamMonitor>();

            m_sb = new StringBuilder();

            UpdateParameters();
        }
コード例 #3
0
ファイル: RamText.cs プロジェクト: Ghtu52/Spy-Videogame
        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
ファイル: RamText.cs プロジェクト: MostHated/graphy
        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();
        }