Fixing variable | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Fixing variable

during our work on a game using C# on unity , we faced a problem that we have variables that change in the class and at the end we would like to conserve them , how can we do that without thinking of using a data base ?

22nd Jan 2018, 8:48 PM
Rayen Jbahi
Rayen Jbahi - avatar
7 Answers
+ 9
what about registry ?
22nd Jan 2018, 9:35 PM
Ali Abdulbasit
Ali Abdulbasit - avatar
+ 8
using XML
22nd Jan 2018, 9:27 PM
Ali Abdulbasit
Ali Abdulbasit - avatar
+ 1
for example,(in a game) we have a building in each one we have number of people , that changes (a variable, because the user have to add and drop people from that building ) so how can I conserve the number of people in each building ? I am searching a method (not to use XML (this one had long things to do with ⬆⬆, see my answer up there) and registry ( because it's limited)), is there some way easier and shorter than those ?
24th Jan 2018, 9:30 PM
Rayen Jbahi
Rayen Jbahi - avatar
+ 1
I think this may help , I will check this with may team thank you 😃😃😃
25th Jan 2018, 6:48 PM
Rayen Jbahi
Rayen Jbahi - avatar
0
we discuss that and we find that this take much things , serialization and desirialization
22nd Jan 2018, 9:31 PM
Rayen Jbahi
Rayen Jbahi - avatar
0
we would like something easer , and shorter
22nd Jan 2018, 9:32 PM
Rayen Jbahi
Rayen Jbahi - avatar
0
my friend said that it is limited
22nd Jan 2018, 9:46 PM
Rayen Jbahi
Rayen Jbahi - avatar