Exemplo n.º 1
0
 void Start()
 {
     m_draw          = GetComponent <DrawRD>();
     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 * 1060), ((float)Screen.height / 1080 * 578), m_paletteTex2D.width, m_paletteTex2D.height);
     m_selectRect1   = new Rect(((float)Screen.width / 1920 * 1060) + m_paletteTex2D.width + 5, ((float)Screen.height / 1080 * 578), m_swatchesWidth, m_swatchesHeight);
     f_SetSwatchesPanel();
     f_SetColorPanel(Color.red);
     m_offestY = (int)((float)Screen.height / 1080 * 578) + m_swatchesHeight;
 }
Exemplo n.º 2
0
 void Start()
 {
     m_draw    = GetComponent <DrawRD>();
     m_palette = GetComponent <PaletteRD>();
 }