fixes on UI
This commit is contained in:
parent
db828be164
commit
748fdc3cb0
@ -73,16 +73,6 @@ namespace Intrepid.Gameplay.Entities.Player.Sentinel
|
||||
StateMachine.UpdateStateMachine();
|
||||
|
||||
InputResolver.Sentinel.CaptureAndPrune(TimeSimulation.Instance.ScaledElapsedTime);
|
||||
|
||||
// that is the right place?
|
||||
if (Controls.OnCadence)
|
||||
{
|
||||
TimeSimulation.Instance.AsBreathMotion(.5f);
|
||||
}
|
||||
else
|
||||
{
|
||||
TimeSimulation.Instance.AsNormalMotion(.5f);
|
||||
}
|
||||
|
||||
if (StateFirstFrame)
|
||||
{
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using Intrepid.Core.TimeControl;
|
||||
using Intrepid.Structures;
|
||||
using Intrepid.Utilities;
|
||||
using UnityEngine;
|
||||
@ -27,11 +28,16 @@ namespace Intrepid.Gameplay.Entities.Player.Sentinel.StateMachine.States
|
||||
protected override void RunOnEnter(ParameterStore parameterStore)
|
||||
{
|
||||
Brain.Entity.ModelAnimation.CrossFade(dashRecovery, 0.05f);
|
||||
if (Brain.Controls.OnCadence)
|
||||
{
|
||||
TimeSimulation.Instance.AsBreathMotion();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void RunOnExit()
|
||||
{
|
||||
Timer.Stop();
|
||||
TimeSimulation.Instance.AsNormalMotion();
|
||||
}
|
||||
|
||||
public override void RunOnFirstFrameOnly()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user