Unity Farm Game Tutorial - Loading Resources - Part 4

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 14

  • @creativetranscendentgames6893
    @creativetranscendentgames6893 3 года назад +1

    Cool!

  • @miguelmax1601
    @miguelmax1601 3 года назад +2

    Tiene muy buena pinta =D

  • @davidmaloney7245
    @davidmaloney7245 3 года назад +1

    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?

    • @SilverlyBee
      @SilverlyBee  3 года назад +3

      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."

  • @Buddy-O
    @Buddy-O 3 года назад +1

    Nice video...

  • @rahuldasrd7780
    @rahuldasrd7780 3 года назад +2

    hey keep making video

  • @basiccomponents
    @basiccomponents 3 года назад +2

    It would be great to see how to rename objects through code!

    • @basiccomponents
      @basiccomponents 3 года назад

      what shortcut do you use to comment/uncomment multiple lines of code?

    • @basiccomponents
      @basiccomponents 3 года назад

      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.

    • @SilverlyBee
      @SilverlyBee  3 года назад

      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.