public void RecalculateSolution() { Color32 clrMerge = MMConstants.WHITE; mergedLaser.GetComponent <LineRenderer>().enabled = mergedLaser.GetComponent <RayLaser>().enabled = true; if (msMergerSolutions.Count == 0) { mergedLaser.GetComponent <LineRenderer>().enabled = mergedLaser.GetComponent <RayLaser>().enabled = false; } else if (msMergerSolutions.Count == 1) { clrMerge = msMergerSolutions[0].clrLaserColor; } else { clrMerge = MMUtils.GetMergedColor(msMergerSolutions[0].clrLaserColor, msMergerSolutions[1].clrLaserColor); } mergedLaser.GetComponent <RayLaser>().UpdateRayColor(clrMerge); }