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()
|
||||
|
||||
Reference in New Issue
Block a user