Search Unity

Use of inventory

Discussion in 'Unity Hub' started by AmitTzuberi, Nov 15, 2019.

  1. AmitTzuberi

    AmitTzuberi

    Joined:
    Oct 1, 2019
    Posts:
    4
    Hello Professionals,
    I started the Creator Kit: Beginner Code course after experimenting with unity software and got stuck in the last "customization" class.

    One of the tasks I was tasked with was to remove one unit from the inventory when the bool true was used.
    And in the second task of this task if the player's life is full the potion will not be used and no bool false will be removed.

    What should I think of when writing variables and classes?