Drive the field shield test scene by publishing capability events
FieldTester now owns a CapabilityEvents instance and stands in for the capability source the simulation doesn't have yet: it publishes AbsorbEvent on click (cycling DamageType so the operator can see how a type-aware presenter would behave), GrabEvent(Started) on pickup click, MeleeEvent on the Melee button, and a ThrustEvent every frame from input -- FieldDriver only ever reacts through CapabilityPresentationBinder. The damped push/twist state that used to live directly on FieldDriver.Push/FrontTwist/RearTwist now lives in FieldTester and is applied through the event instead. Adds a CapabilityPresentationBinder component to the field object in FieldShieldTest.unity, alongside the existing added ClickableCollider component on that same prefab-instance GameObject (same pattern, no serialized fields to wire). Scene behavior is unchanged: hits, melee, pickups and flow all look and act as before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
2138aa4560
commit
807c4fab7e
2 changed files with 80 additions and 24 deletions
|
|
@ -1084,8 +1084,20 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 52538a3309c36fc4583c964a1c0b705f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &909026490
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 909026486}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d8f4aa77146e46a2a4b28d9fefb98496, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1012179276
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue