Search Unity

I'm doing Tutorial Project :: Ruby 2D

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

  1. woals3850

    woals3850

    Joined:
    Jun 25, 2019
    Posts:
    9

    Attached Files:

  2. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    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.