// Checks to see if a given color is close to the target color public bool CheckForWin(Color currentColor) { float distance = Liquid.ColorDistance(currentColor, targetColor); // If so, WIN! if (distance < requiredDistance) { successCanvas.gameObject.SetActive(true); _winState = true; StartCoroutine(BannerLatch()); } return(_winState); }