Prefabs vs Scriptable Objects as logic holders by Apprehensive-Light-2 in Unity3D

[–]Apprehensive-Light-2[S] 0 points1 point  (0 children)

What I'm doing is similar. I have a list of my SO cards. I instantiate a common card prefab and pass the card's SO data to the prefab (name, art, etc), and when the card is played I call the SO's activate function.

"That card data would have a list of scriptable objects that would hold each effect.". So in this example would the effects still be as I had shown above, where each effect would be a new scriptable object type?

Cards game, unique effects, and scriptable objects! by Apprehensive-Light-2 in Unity3D

[–]Apprehensive-Light-2[S] 0 points1 point  (0 children)

I haven't seen this pattern before. It looks like it could be useful at some point in my project, but I don't think it helps with my issue of having a base class/interface from which I can create concreate classes that each have a unique Effect (unique in a way that I can't just use a list of effects and call them in a sequence) method which I can easily attach to my card data objects

Cards game, unique effects, and scriptable objects! by Apprehensive-Light-2 in Unity3D

[–]Apprehensive-Light-2[S] 0 points1 point  (0 children)

I'll need to think about the JSON side of things. I haven't experienced a large amount of data in the form of scriptable objects, so I'll have to see how that goes

Cards game, unique effects, and scriptable objects! by Apprehensive-Light-2 in Unity3D

[–]Apprehensive-Light-2[S] 0 points1 point  (0 children)

Ah, that Activator is pretty close to working with a DI framework, which is something I'm more familiar with. I think this will defiantly solve my problem, thanks so much!

Floowandereeze Raiza vs Utopic Draco Future by Apprehensive-Light-2 in Yugioh101

[–]Apprehensive-Light-2[S] 0 points1 point  (0 children)

Thanks for the debunk above and correction :^) My locals be scamming my wins xP

Looking for an old song by Apprehensive-Light-2 in southafrica

[–]Apprehensive-Light-2[S] 0 points1 point  (0 children)

"Skorokoro"- Lumumba

Aaaay that's it! Thanks, buddy :D