private static void SetObstacleSaberSparkleColor(ObstacleSaberSparkleEffect obstacleSaberSparkleEffect, ObstacleController obstacleController) { Color.RGBToHSV(obstacleController.GetObstacleColorizer().Color, out float h, out float s, out _); obstacleSaberSparkleEffect.color = Color.HSVToRGB(h, s, 1); }
private static void Postfix(MirroredObstacleController __instance, ObstacleController ____followedObstacle) { __instance.ColorizeObstacle(____followedObstacle.GetObstacleColorizer().Color); }