fixed mantle after dash bug
This commit is contained in:
@@ -66,7 +66,7 @@ public partial class DashSystem: Node3D
|
||||
_tweenQueueSystem = tweenQueueSystem;
|
||||
|
||||
_mantleSystem = GetNode<MantleSystem>("MantleSystem");
|
||||
_mantleSystem.Init(this);
|
||||
_mantleSystem.Init();
|
||||
|
||||
_dashTarget = GetNode<MeshInstance3D>("DashTarget");
|
||||
_dashTarget.SetVisible(false);
|
||||
@@ -116,7 +116,8 @@ public partial class DashSystem: Node3D
|
||||
var targetMaterial = (StandardMaterial3D) _dashTarget.GetSurfaceOverrideMaterial(0);
|
||||
targetMaterial.SetAlbedo(targetColor);
|
||||
_dashTarget.SetVisible(true);
|
||||
_dashTarget.SetGlobalPosition(PlannedLocation);
|
||||
var targetLocation = ShouldMantle ? PlannedMantleLocation : PlannedLocation;
|
||||
_dashTarget.SetGlobalPosition(targetLocation);
|
||||
}
|
||||
|
||||
public void StopPreparingDash()
|
||||
|
||||
@@ -35,7 +35,7 @@ mesh = SubResource("SphereMesh_qu4wy")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_v31n3")
|
||||
|
||||
[node name="MantleSystem" parent="." instance=ExtResource("2_pff7b")]
|
||||
MantleEndLocationDistanceFromWall = 0.3
|
||||
MantleEndLocationDistanceFromWall = 0.25
|
||||
MantleHeightCastStart = 2.0
|
||||
|
||||
[node name="DashIndicator" parent="." instance=ExtResource("2_tqt6i")]
|
||||
|
||||
Reference in New Issue
Block a user