🎨 Live review changes
This commit is contained in:
@@ -63,16 +63,6 @@ public partial class FighterVisual : Node2D
|
||||
}
|
||||
|
||||
// Animations
|
||||
//public void AttackAnimation(FightAttack attack)
|
||||
//{
|
||||
// EmitSignalAttacking();
|
||||
// var tween = GetTree().CreateTween();
|
||||
// tween.TweenProperty(this, "global_position", attack.target.GlobalPosition, 0.15);
|
||||
// tween.TweenCallback(Callable.From(() => attack.target?.HitAnimation(attack)));
|
||||
// tween.TweenProperty(this, "position", new Vector2(0, 0), 0.7)
|
||||
// .SetTrans(Tween.TransitionType.Cubic).SetEase(Tween.EaseType.Out);
|
||||
//}
|
||||
|
||||
public async Task AnimatePosToTarget(FighterVisual targetVisual, double duration = 0.15)
|
||||
{
|
||||
var tween = GetTree().CreateTween();
|
||||
@@ -96,16 +86,7 @@ public partial class FighterVisual : Node2D
|
||||
await ToSignal(tween, "finished");
|
||||
}
|
||||
|
||||
|
||||
//private void HitAnimation(FightAttack attack)
|
||||
//{
|
||||
// EmitSignalDamageTaken();
|
||||
// var tween = GetTree().CreateTween();
|
||||
// tween.TweenProperty(this, "scale", new Vector2(1.4f, 0.6f), 0.15);
|
||||
// tween.TweenProperty(this, "scale", new Vector2(1, 1), 0.4)
|
||||
// .SetTrans(Tween.TransitionType.Cubic).SetEase(Tween.EaseType.Out);
|
||||
//}
|
||||
//
|
||||
// Keep for reference for new Heal animation
|
||||
//public void HealAnimation()
|
||||
//{
|
||||
// EmitSignalHealed();
|
||||
|
||||
Reference in New Issue
Block a user