GameGraphics.GraphicsObject.GetColorID C# (CSharp) 메소드

GetColorID() 공개 메소드

Returns the given color ID of the object
public GetColorID ( ) : int
리턴 int
        public int GetColorID()
        {
            for (int i = 0; i < COLOR.Length; i++)
            {
                if (this.GetColor().Equals(COLOR[i])){
                    return i; // found it
                }
            }

            return -1; // this is a unique color
        }