GameGraphics.GraphicsObject.GetColorID C# (CSharp) Méthode

GetColorID() public méthode

Returns the given color ID of the object
public GetColorID ( ) : int
Résultat 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
        }