fixes
This commit is contained in:
parent
a0e40ef458
commit
a329ec0042
|
|
@ -276,7 +276,7 @@ namespace HeavenStudio.Games
|
||||||
|
|
||||||
public void RequestArch(double beat)
|
public void RequestArch(double beat)
|
||||||
{
|
{
|
||||||
Arch newArch = Instantiate(archBasic);
|
Arch newArch = Instantiate(archBasic, transform);
|
||||||
newArch.appearBeat = beat;
|
newArch.appearBeat = beat;
|
||||||
newArch.gameObject.SetActive(true);
|
newArch.gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
|
|
@ -307,7 +307,7 @@ namespace HeavenStudio.Games
|
||||||
public void CueCrouch(double beat)
|
public void CueCrouch(double beat)
|
||||||
{
|
{
|
||||||
|
|
||||||
ScheduleInput(beat, 3f, InputAction_FlickRelease, CrouchSuccess, CrouchMiss, CrouchEmpty);
|
ScheduleInput(beat, 3f, InputAction_BasicPress, CrouchSuccess, CrouchMiss, CrouchEmpty);
|
||||||
|
|
||||||
BeatAction.New(instance, new List<BeatAction.Action>() {
|
BeatAction.New(instance, new List<BeatAction.Action>() {
|
||||||
new BeatAction.Action(beat, delegate {cpu1CantBop = true;}),
|
new BeatAction.Action(beat, delegate {cpu1CantBop = true;}),
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace HeavenStudio.Games.Scripts_Airboarder
|
||||||
|
|
||||||
public float normalizedStart;
|
public float normalizedStart;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Header("Components")]
|
[Header("Components")]
|
||||||
|
|
@ -30,7 +30,7 @@ namespace HeavenStudio.Games.Scripts_Airboarder
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
game = Airboarder.instance;
|
game = Airboarder.instance;
|
||||||
gameObject.transform.position = new Vector3(-140f, -1f, 0.8f);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -66,7 +66,10 @@ namespace HeavenStudio.Games.Scripts_Airboarder
|
||||||
var cond = Conductor.instance;
|
var cond = Conductor.instance;
|
||||||
var currentBeat = cond.songPositionInBeatsAsDouble;
|
var currentBeat = cond.songPositionInBeatsAsDouble;
|
||||||
float normalizedStart = Conductor.instance.GetPositionFromBeat(appearBeat, 40f);
|
float normalizedStart = Conductor.instance.GetPositionFromBeat(appearBeat, 40f);
|
||||||
|
float horizArch = (5*normalizedStart) - 140;
|
||||||
anim.Play("move", 0, normalizedStart);
|
anim.Play("move", 0, normalizedStart);
|
||||||
|
// gameObject.transform.position = new Vector3(horizArch, -1f, 0.8f);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue