Stash work on refactor of trajecotry
This commit is contained in:
@@ -44,12 +44,8 @@ namespace Minigames.Airplane.Core
|
||||
[Tooltip("Airplane prefab to spawn")]
|
||||
[SerializeField] private GameObject airplanePrefab;
|
||||
|
||||
[Header("Visual Feedback")]
|
||||
[Tooltip("Line renderer for trajectory preview (optional)")]
|
||||
[SerializeField] private LineRenderer trajectoryLine;
|
||||
|
||||
[Tooltip("Visual indicator for launch anchor (optional)")]
|
||||
[SerializeField] private GameObject anchorVisual;
|
||||
// Note: Trajectory preview is handled by base DragLaunchController class
|
||||
// It will auto-find TrajectoryPreview component on this GameObject
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -81,17 +77,7 @@ namespace Minigames.Airplane.Core
|
||||
}
|
||||
}
|
||||
|
||||
// Setup trajectory line
|
||||
if (trajectoryLine != null)
|
||||
{
|
||||
trajectoryLine.enabled = false;
|
||||
}
|
||||
|
||||
// Hide anchor visual initially
|
||||
if (anchorVisual != null)
|
||||
{
|
||||
anchorVisual.SetActive(false);
|
||||
}
|
||||
// Base class handles trajectory preview setup
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -211,11 +197,7 @@ namespace Minigames.Airplane.Core
|
||||
// Launch the airplane
|
||||
_activeAirplane.Launch(direction, force);
|
||||
|
||||
// Hide trajectory preview
|
||||
if (trajectoryLine != null)
|
||||
{
|
||||
trajectoryLine.enabled = false;
|
||||
}
|
||||
// Trajectory preview is automatically hidden by base class
|
||||
|
||||
if (showDebugLogs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user