/**
     * Return the index of the ball color
     */
    public int GetColorIndex()
    {
        if (!this.is_colored)
        {
            new UnityException("Trying to access the color index of a non-colored ball.");
        }

        return(BallManager.GetColorIndex(this));
    }