Hi i have been playing with unity for a while now but i have only just started a project with a clear goal so i know how to do a lot of the basic stuff. But now i know what i want to do with it its like hitting one road block after another lol.
My problem is this:
i have a class ‘Ships.cs’ and in that class i have some enum’s that contain all the different ships basic max stats (maxShield, maxFuel and so on) now i want to be able to copy the contents of one of these enum’s to a different class ‘PlayerStuff.cs’ that holds all of the players inventory and stats and so on. Now the way i have been trying to do this is with a simple SetShip function that’s in the PlayerStuff.cs but is called from a different class named ‘UniverseControler.cs’
Now part of the problem is that i don’t know if i want to create a new enum in the PlayerStuff class and somehow copy the contents straight over or if i should empty the content of the enum i want in to the variables already in place in the PlayerStuff class.
Or perhaps im going about this all wrong.
Any help or advice would me much very much appreciated