Timeline for How to use AddComponent to add an instance of the derived class, not the base class that defines the method?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 12, 2023 at 4:51 | vote | accept | Sean Carey | ||
| Jan 7, 2022 at 1:51 | comment | added | DMGregory♦ | I'd recommend not making separate subclasses for each model of weapon. Variations between an M16 vs an AK47 etc. should typically be represented as data - different clip sizes, fire rates, range values, recoil patterns, etc. - these are all just different sets of numbers, not wholly unique logic that demands bespoke code. | |
| Jan 7, 2022 at 1:49 | history | edited | DMGregory♦ | CC BY-SA 4.0 |
This is a Q&A site, so *every* post is a "Question about..." something. You can leave that part out and focus on the "something".
|
| Jan 7, 2022 at 1:46 | answer | added | DMGregory♦ | timeline score: 3 | |
| Jan 6, 2022 at 22:39 | history | asked | Sean Carey | CC BY-SA 4.0 |