UpdateColors() public method

public UpdateColors ( Zprite sprite ) : void
sprite Zprite
return void
Exemplo n.º 1
0
    public virtual void UpdateColors(Color color)
    {
        meshColors[cv1] = color;
        meshColors[cv2] = color;
        meshColors[cv3] = color;
        meshColors[cv4] = color;

        m_manager.UpdateColors();
    }
Exemplo n.º 2
0
 // Sets the specified color and automatically notifies the
 // SpriteManager to update the colors:
 public void SetColor(Color c)
 {
     color = c;
     m_manager.UpdateColors(this);
 }