© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•7mo ago
shirin

✅ Linking a base class that does something (and has children) to a manager

Im making a simple, quick and messy, prototype for a letter sorting and stamping mechanism. I previously had tons of lines in one file (manager script) and it did many things all at once and I thought maybe better to decouple and start refactoring the code since I also want different behaviour from different objects. But now the main interaction of just being able to move letters around, or the stamp, doesnt work anymore and im very new at this so Im not sure what im doing or how everything connects (or doesnt).

The main scripts are:
LetterTableManager
(which should just manage general interaction with the letter sorting table),

DraggableItem
(this is a base class for items you can drag around on the table),

LetterItem
(uses draggable item as a base and handles stuff specific to the letter (will be adding later)),

StampItem
(Has a slight difference in how its moved around so I overid one of the methods from the base class)

https://paste.mod.gg/owgfklsgbvjo/0
BlazeBin - owgfklsgbvjo
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Cant access base parameter in children partial class
C#CC# / help
3y ago
❔ Creating a class that takes a Logger for both the class and its base class
C#CC# / help
4y ago
❔ Bind derived class and base class to CollectionView and Picker
C#CC# / help
3y ago