Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

I'm doing Tutorial Project :: Ruby 2D

Discussion in '2D' started by woals3850, Jun 30, 2019.

  1. woals3850

    woals3850

    Joined:
    Jun 25, 2019
    Posts:
    1

    Attached Files:

  2. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,582
    Destroy() is often used to completely remove a GameObject from the scene. I haven't actually completed the tut, by my guess is it is destroying the object after it gets "collected" - which really just means it is deleting it, and in some other part of the tutorial it probably adds the Ruby to a count or something as a score.
     
    computergoddess likes this.