Skip to content

Commit

Permalink
fix not implemented exception
Browse files Browse the repository at this point in the history
  • Loading branch information
stilnat committed Oct 18, 2024
1 parent e2f354b commit c8d0061
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down Expand Up @@ -111,4 +116,4 @@ private void OnOpenStateChange(bool e)
OnOpenStateChanged?.Invoke(this, e);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -63,4 +68,4 @@ public override bool Start(InteractionEvent interactionEvent, InteractionReferen
return false;
}
}
}
}

0 comments on commit c8d0061

Please sign in to comment.