private static void ColorPlanet(scrPlanet planet, Color color) { //MelonLogger.Msg($"Set {(planet.isRed ? "red" : "blue")} to {color.ToHex()}"); planet.SetCoreColor(color); planet.SetPlanetColor(color); planet.SetTailColor(color); }
public static void Postfix(scrPlanet __instance, AdofaiPlanetColor planetColor) { __instance.RemoveGold(); __instance.SetRainbow(false); Color color = planetColor.GetColor(); __instance.EnableCustomColor(); __instance.SetPlanetColor(color); __instance.SetTailColor(color); }
public static void Prefix(scrPlanet __instance, ref Color color) { if (__instance.isRed) { color = Settings.Color1; } else { color = Settings.Color2; } }
public static void Prefix(scrPlanet __instance) { float angleDiff = (float)(__instance.angle - __instance.targetExitAngle); if (!__instance.controller.isCW) { angleDiff *= -1; } if (RDC.auto) { HitErrorMeter.Instance.AddHit(0); } else { HitErrorMeter.Instance.AddHit(angleDiff); } }
private static void Postfix(scrPlanet __instance) { __instance.EnableCustomColor(); ColorPlanet(__instance, __instance.isRed ? Utils.HexToUnityColor(Settings.Red) : Utils.HexToUnityColor(Settings.Blue)); }