/// <summary> /// Get the color of the shape path. /// </summary> /// <returns>The shape path color.</returns> /// <param name="ID">The ID of the shape.</param> /// <param name="from">From.</param> /// <param name="to">To.</param> public static Color GetShapePathColor(int ID, int from, int to) { Color color = Color.white; string key = GetPathStrKey(ID, from, to); if (PlayerPrefs.HasKey(key)) { color = CommonUtil.StringRGBAToColor(PlayerPrefs.GetString(key)); } return(color); }