epic tweaks
This commit is contained in:
parent
188533a05e
commit
f30d850b74
|
|
@ -562,7 +562,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
_fullRotRange: 160
|
_fullRotRange: 160
|
||||||
_spawnOffset: 0
|
_spawnOffset: -2
|
||||||
_holdLength: 2
|
_holdLength: 2
|
||||||
_ease: 4
|
_ease: 4
|
||||||
_rotateRoot: {fileID: 2616646720197201304}
|
_rotateRoot: {fileID: 2616646720197201304}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat
|
||||||
public class AcrobatPlayer : SuperCurveObject
|
public class AcrobatPlayer : SuperCurveObject
|
||||||
{
|
{
|
||||||
[Header("Values")]
|
[Header("Values")]
|
||||||
|
[SerializeField] private float _jumpDistanceStart = 6f;
|
||||||
[SerializeField] private float _jumpDistance = 8f;
|
[SerializeField] private float _jumpDistance = 8f;
|
||||||
[SerializeField] private float _jumpHeight = 4f;
|
[SerializeField] private float _jumpHeight = 4f;
|
||||||
[SerializeField] private float _jumpDistanceGiraffe = 32f;
|
[SerializeField] private float _jumpDistanceGiraffe = 32f;
|
||||||
|
|
@ -44,7 +45,7 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat
|
||||||
var cond = Conductor.instance;
|
var cond = Conductor.instance;
|
||||||
yield return new WaitUntil(() => cond.songPositionInBeatsAsDouble >= beat);
|
yield return new WaitUntil(() => cond.songPositionInBeatsAsDouble >= beat);
|
||||||
_anim.DoScaledAnimationAsync("PlayerJump", 0.5f);
|
_anim.DoScaledAnimationAsync("PlayerJump", 0.5f);
|
||||||
Jump(beat, 1, transform.localPosition.x, _jumpDistance, _jumpHeight, transform.localPosition.y);
|
Jump(beat, 1, transform.localPosition.x, _jumpDistanceStart, _jumpHeight, transform.localPosition.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Jump(double beat, float length, float startPoint, float distance, float height, float restY)
|
private void Jump(double beat, float length, float startPoint, float distance, float height, float restY)
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("animalAcrobat/catch");
|
SoundByte.PlayOneShotGame("animalAcrobat/catch");
|
||||||
_monkey.gameObject.SetActive(true);
|
_monkey.gameObject.SetActive(true);
|
||||||
_monkey.DoScaledAnimationAsync("PlayerHang", 0.75f);
|
_monkey.DoScaledAnimationAsync("PlayerHang", 1f, 0.4f);
|
||||||
_game.PlayerSetActive(false);
|
_game.PlayerSetActive(false);
|
||||||
BeatAction.New(this, new List<BeatAction.Action>()
|
BeatAction.New(this, new List<BeatAction.Action>()
|
||||||
{
|
{
|
||||||
|
|
@ -59,14 +59,14 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("animalAcrobat/giraffeCatch");
|
SoundByte.PlayOneShotGame("animalAcrobat/giraffeCatch");
|
||||||
_monkey.gameObject.SetActive(true);
|
_monkey.gameObject.SetActive(true);
|
||||||
_monkey.DoScaledAnimationAsync("PlayerHang", 0.75f);
|
_monkey.DoScaledAnimationAsync("PlayerHang", 1f, 0.4f);
|
||||||
_game.PlayerSetActive(false);
|
_game.PlayerSetActive(false);
|
||||||
BeatAction.New(this, new List<BeatAction.Action>()
|
BeatAction.New(this, new List<BeatAction.Action>()
|
||||||
{
|
{
|
||||||
new BeatAction.Action(0, delegate {}),
|
new BeatAction.Action(0, delegate {}),
|
||||||
new BeatAction.Action(caller.startBeat + caller.timer + 2, delegate
|
new BeatAction.Action(caller.startBeat + caller.timer + 2, delegate
|
||||||
{
|
{
|
||||||
_monkey.DoScaledAnimationAsync("PlayerHanging", 0.5f);
|
_monkey.DoScaledAnimationAsync("PlayerHanging", 0.25f);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,14 +38,14 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("animalAcrobat/catch");
|
SoundByte.PlayOneShotGame("animalAcrobat/catch");
|
||||||
_monkey.gameObject.SetActive(true);
|
_monkey.gameObject.SetActive(true);
|
||||||
_monkey.DoScaledAnimationAsync("PlayerHang", 0.75f);
|
_monkey.DoScaledAnimationAsync("PlayerHang", 1f, 0.4f);
|
||||||
_game.PlayerSetActive(false);
|
_game.PlayerSetActive(false);
|
||||||
BeatAction.New(this, new List<BeatAction.Action>()
|
BeatAction.New(this, new List<BeatAction.Action>()
|
||||||
{
|
{
|
||||||
new BeatAction.Action(0, delegate {}),
|
new BeatAction.Action(0, delegate {}),
|
||||||
new BeatAction.Action(caller.startBeat + caller.timer + (_holdLength * 0.5), delegate
|
new BeatAction.Action(caller.startBeat + caller.timer + (_holdLength * 0.5), delegate
|
||||||
{
|
{
|
||||||
_monkey.DoScaledAnimationAsync("PlayerHanging", 0.5f);
|
_monkey.DoScaledAnimationAsync("PlayerHanging", 0.5f / ((float)_holdLength * 0.5f));
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -54,7 +54,7 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("animalAcrobat/giraffeCatch");
|
SoundByte.PlayOneShotGame("animalAcrobat/giraffeCatch");
|
||||||
_monkey.gameObject.SetActive(true);
|
_monkey.gameObject.SetActive(true);
|
||||||
_monkey.DoScaledAnimationAsync("PlayerHang", 0.75f);
|
_monkey.DoScaledAnimationAsync("PlayerHang", 1f, 0.4f);
|
||||||
_game.PlayerSetActive(false);
|
_game.PlayerSetActive(false);
|
||||||
BeatAction.New(this, new List<BeatAction.Action>()
|
BeatAction.New(this, new List<BeatAction.Action>()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue