Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How do I connect between classes in a script?

Discussion in 'Documentation' started by AmitTzuberi, Nov 17, 2019.

Thread Status:
Not open for further replies.
  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?
     
  2. APSchmidtOfOld

    APSchmidtOfOld

    Joined:
    Aug 8, 2016
    Posts:
    4,473
  3. AmitTzuberi

    AmitTzuberi

    Joined:
    Oct 1, 2019
    Posts:
    4
Thread Status:
Not open for further replies.