oh okay that bug was really easy to fix
This commit is contained in:
parent
5a9bd71ae1
commit
9d753b9ec2
|
|
@ -135,9 +135,9 @@ namespace HeavenStudio.Games
|
|||
|
||||
legsAnim.Play("LiftFront", 0, 1); // Start with leg up.
|
||||
|
||||
if (!Conductor.instance.isPlaying) {
|
||||
OnGameSwitch(Conductor.instance.songPositionInBeatsAsDouble);
|
||||
}
|
||||
// if (!Conductor.instance.isPlaying) {
|
||||
// OnGameSwitch(Conductor.instance.songPositionInBeatsAsDouble);
|
||||
// }
|
||||
|
||||
// Initialize vegetables.
|
||||
// var cond = Conductor.instance;
|
||||
|
|
@ -244,8 +244,6 @@ namespace HeavenStudio.Games
|
|||
// }
|
||||
}
|
||||
|
||||
List<RiqEntity> cuedMoleSounds = new List<RiqEntity>();
|
||||
|
||||
public override void OnGameSwitch(double beat)
|
||||
{
|
||||
double startBeat;
|
||||
|
|
@ -394,7 +392,7 @@ namespace HeavenStudio.Games
|
|||
var grassPos = grassTrans.localPosition;
|
||||
|
||||
var newGrassX = grassPos.x + (scrollRate * Time.deltaTime);
|
||||
newGrassX = (newGrassX % (grassWidth * 4.5f));
|
||||
newGrassX %= grassWidth * 4.5f;
|
||||
|
||||
grassTrans.localPosition = new Vector3(newGrassX, grassPos.y, grassPos.z);
|
||||
|
||||
|
|
@ -402,7 +400,7 @@ namespace HeavenStudio.Games
|
|||
var dotsPos = dotsTrans.localPosition;
|
||||
|
||||
var newDotsX = dotsPos.x + (scrollRate * Time.deltaTime);
|
||||
newDotsX = (newDotsX % dotsWidth);
|
||||
newDotsX %= dotsWidth;
|
||||
|
||||
dotsTrans.localPosition = new Vector3(newDotsX, dotsPos.y, dotsPos.z);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ namespace HeavenStudio.Games.Scripts_CropStomp
|
|||
{
|
||||
game = CropStomp.instance;
|
||||
|
||||
if (Conductor.instance.isPlaying)
|
||||
// if (Conductor.instance.isPlaying)
|
||||
game.ScheduleInput(targetBeat - 1, 1f, CropStomp.InputAction_BasicPress, StompJust, StompMiss, Out);
|
||||
|
||||
if (!isMole)
|
||||
|
|
@ -56,8 +56,7 @@ namespace HeavenStudio.Games.Scripts_CropStomp
|
|||
private bool gotStomped; // Safeguard in case nested Update() call breaks.
|
||||
private void Update()
|
||||
{
|
||||
if (!game.isMarching)
|
||||
return;
|
||||
if (!game.isMarching) return;
|
||||
|
||||
switch (veggieState)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue