コード例 #1
0
 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);
 }
コード例 #2
0
 private static void Postfix(MirroredObstacleController __instance, ObstacleController ____followedObstacle)
 {
     __instance.ColorizeObstacle(____followedObstacle.GetObstacleColorizer().Color);
 }