Ejemplo n.º 1
0
    void Start()
    {
        m_draw          = GetComponent <DrawLU>();
        m_arrayColor    = new Color[m_paletteTex2DLength, m_paletteTex2DLength];
        m_paletteTex2D  = new Texture2D(m_paletteTex2DLength, m_paletteTex2DLength, TextureFormat.RGB24, true);
        m_swatchesTex2D = new Texture2D(m_swatchesWidth, m_swatchesHeight, TextureFormat.RGB24, true);
        m_selectRect2   = new Rect(((float)Screen.width / 1920 * 100), ((float)Screen.height / 1080 * 38), m_paletteTex2D.width, m_paletteTex2D.height);
        m_selectRect1   = new Rect(((float)Screen.width / 1920 * 100) + m_paletteTex2D.width + 5, ((float)Screen.height / 1080 * 38), m_swatchesWidth, m_swatchesHeight);

        m_selectRect2fan = new Rect(((float)Screen.width / 1920 * 860) - m_paletteTex2D.width, ((float)Screen.height / 1080 * 502) - m_paletteTex2D.height, m_paletteTex2D.width, m_paletteTex2D.height);
        m_selectRect1fan = new Rect(((float)Screen.width / 1920 * 860) - m_paletteTex2D.width - m_swatchesWidth - 5, ((float)Screen.height / 1080 * 502) - m_swatchesHeight, m_swatchesWidth, m_swatchesHeight);
        f_SetSwatchesPanel();
        f_SetColorPanel(Color.red);
        m_offestY = (int)((float)Screen.height / 1080 * 502);
    }
Ejemplo n.º 2
0
 void Start()
 {
     m_draw    = GetComponent <DrawLU>();
     m_palette = GetComponent <PaletteLU>();
 }