Hello, I was wondering why do you declare so many of your global variables without the private or public modifier? Is there a specific reason for this?
Hi, it's because it's private by default on C# (functions as well). But you can declare them with the modifier if you'd like, I just find it redundant. Quoting the documentation: "Class and struct members, including nested classes and structs, have private access by default."
other question, -I deleted the plant items from the menu but I had not created the "super corn", now how can I create a new plant (ex. super corn) and- _[solved, it's in the next video]_ how can I edit the existing plants, for example to rename them (my corn plant has no "corn" title now when I play and neither the "super corn"). Thank you so much, sorry for the many questions.
Hehe, many things to address here. I select them and hit Ctrl+Shift+; and that comments/uncomments it. I don't understand your second question. The title for the PlantItem comes from the PlantObject, it is the "plantName" attribute. If you go to your "Plants" folder and select the PlantObject you can change the name on the inspector.
Cool!
Tiene muy buena pinta =D
Gracias :D
Hello, I was wondering why do you declare so many of your global variables without the private or public modifier? Is there a specific reason for this?
Hi, it's because it's private by default on C# (functions as well). But you can declare them with the modifier if you'd like, I just find it redundant. Quoting the documentation: "Class and struct members, including nested classes and structs, have private access by default."
Nice video...
hey keep making video
Hey, thanks :)
It would be great to see how to rename objects through code!
what shortcut do you use to comment/uncomment multiple lines of code?
other question, -I deleted the plant items from the menu but I had not created the "super corn", now how can I create a new plant (ex. super corn) and- _[solved, it's in the next video]_ how can I edit the existing plants, for example to rename them (my corn plant has no "corn" title now when I play and neither the "super corn"). Thank you so much, sorry for the many questions.
Hehe, many things to address here. I select them and hit Ctrl+Shift+; and that comments/uncomments it. I don't understand your second question. The title for the PlantItem comes from the PlantObject, it is the "plantName" attribute. If you go to your "Plants" folder and select the PlantObject you can change the name on the inspector.