GameGraphics.GraphicsObject.SetColorID C# (CSharp) Method

SetColorID() public method

public SetColorID ( int colorID ) : void
colorID int
return void
        public void SetColorID(int colorID)
        {
            if (colorID > 0 && colorID < COLOR.Length)
            {
                this.colorID = colorID;
            }
            else // if we get a value that is not in our range make it white
            {
                this.colorID = DEFAULT_COLOR;
            }
        }