Hello I’m making a game and need help with a script give the example of Euro Truck Simulation improves the garage to store trucks I want to do that but instead of hangars as such a house
SORRY for my HORRIBLE english
EXAMPLE :
Hello I’m making a game and need help with a script give the example of Euro Truck Simulation improves the garage to store trucks I want to do that but instead of hangars as such a house
SORRY for my HORRIBLE english
EXAMPLE :
lets say you want to store numbers (1,2,3…)
int[ ] space = new int[3] This means space have 3 spots to store number.
when you run upgrade function it should look like this
Upgrade()
{
int[] temp = space;
space = new int[5] //upgraded to 5 spaces
}
of course this is simple example how it is handled in code behind scenes. I cant make you whole upgrade script here and add visuals but principle is same (its always easier to store numbers like 0 represents scania r400)
I want to make is that when you have “x” money can improve my house
well i see you are asking basic questions and you may want to check tutorials
just add if statment to ask for money and reduce money if it meets requirments and do upgrade function
Oks Thanks Now I get to see tutorials
do 2-3 of unity basic tutorials (rollaball, space shooter and scavanger recommended mostly) after that create your content like this game or something