From c8d0061c30753d3c2564a7456b0421ce773444ff Mon Sep 17 00:00:00 2001
From: stilnat <nathan.raynal.castang@gmail.com>
Date: Fri, 18 Oct 2024 18:39:39 +0200
Subject: [PATCH] fix not implemented exception

---
 .../SS3D/Systems/Inventory/Interactions/OpenInteraction.cs | 7 ++++++-
 .../Systems/Inventory/Interactions/TakeFirstInteraction.cs | 5 +++++
 .../Inventory/Interactions/ViewContainerInteraction.cs     | 7 ++++++-
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/SS3D/Systems/Inventory/Interactions/OpenInteraction.cs b/Assets/Scripts/SS3D/Systems/Inventory/Interactions/OpenInteraction.cs
index 9f3e16cd9a..a1586a24b3 100644
--- a/Assets/Scripts/SS3D/Systems/Inventory/Interactions/OpenInteraction.cs
+++ b/Assets/Scripts/SS3D/Systems/Inventory/Interactions/OpenInteraction.cs
@@ -24,6 +24,11 @@ public OpenInteraction(AttachedContainer attachedContainer)
             _attachedContainer = attachedContainer;
         }
 
+        public override string GetGenericName()
+        {
+            return "Open";
+        }
+
         public override string GetName(InteractionEvent interactionEvent)
         {
             Animator animator = ((IGameObjectProvider)interactionEvent.Target).GameObject.GetComponent<Animator>();
@@ -111,4 +116,4 @@ private void OnOpenStateChange(bool e)
             OnOpenStateChanged?.Invoke(this, e);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/Assets/Scripts/SS3D/Systems/Inventory/Interactions/TakeFirstInteraction.cs b/Assets/Scripts/SS3D/Systems/Inventory/Interactions/TakeFirstInteraction.cs
index 48e8eddc4d..e3727455f6 100644
--- a/Assets/Scripts/SS3D/Systems/Inventory/Interactions/TakeFirstInteraction.cs
+++ b/Assets/Scripts/SS3D/Systems/Inventory/Interactions/TakeFirstInteraction.cs
@@ -24,6 +24,11 @@ public TakeFirstInteraction(AttachedContainer attachedContainer, float timeToMov
             _attachedContainer = attachedContainer;
         }
 
+        public override string GetGenericName()
+        {
+            return "Take";
+        }
+
         public override string GetName(InteractionEvent interactionEvent)
         {
             return "Take in " + _attachedContainer.ContainerName;
diff --git a/Assets/Scripts/SS3D/Systems/Inventory/Interactions/ViewContainerInteraction.cs b/Assets/Scripts/SS3D/Systems/Inventory/Interactions/ViewContainerInteraction.cs
index a2ae57681b..cd39d042e7 100644
--- a/Assets/Scripts/SS3D/Systems/Inventory/Interactions/ViewContainerInteraction.cs
+++ b/Assets/Scripts/SS3D/Systems/Inventory/Interactions/ViewContainerInteraction.cs
@@ -18,6 +18,11 @@ public ViewContainerInteraction(AttachedContainer attachedContainer)
             AttachedContainer = attachedContainer;
         }
 
+        public override string GetGenericName()
+        {
+            return "View Container";
+        }
+
         public override string GetName(InteractionEvent interactionEvent)
         {
             return "View " + AttachedContainer.ContainerName;
@@ -63,4 +68,4 @@ public override bool Start(InteractionEvent interactionEvent, InteractionReferen
             return false;
         }
     }
-}
\ No newline at end of file
+}