Title: Re: Destroying UISprites in game via code
Post by: ArenMook on February 10, 2013, 11:08:12 PM
1. You're disabling the sprite component, not destroying it. 2. Create a script that has public UISprite variables, attach this script to our LivesInGame game object, and drag & drop the fields in the inspector. Way cleaner than GetChild/GetComponent.