1
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BITKit.Entities.Player.Feel
|
||||
public sealed class PlayerHitMotion : EntityBehavior
|
||||
{
|
||||
[SerializeField] private Spring3 spring;
|
||||
[SerializeField] private LocationAdditive locationAdditive;
|
||||
[SerializeField] private LocationAdditive[] locationAdditives;
|
||||
[SerializeField] private AnimationCurve damageBasedMotion;
|
||||
public override void OnStart()
|
||||
{
|
||||
@@ -25,7 +25,10 @@ namespace BITKit.Entities.Player.Feel
|
||||
public override void OnUpdate(float deltaTime)
|
||||
{
|
||||
spring.Update(deltaTime,default);
|
||||
locationAdditive.AddEuler(spring.value);
|
||||
foreach (var x in locationAdditives)
|
||||
{
|
||||
x.AddEuler(spring.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user