Make a variable called 'displayhealth' and set it to false, then put the code in the draw event as I demonstrated above. Player = GameObject.FindWithTag("Player") 2 Thew 1:35pm You have a controller object that is handling the drawing of the health bar, if Im reading right. Here is my code so far: var UFOsound : AudioClip I have a UFO that takes off from a hill when the player gets within a certain distance, but whay I want is about partway thought the fight animation for a small explosion to occure on the side of the UFO and then for it to explode an "Destroy game object" at the end of the animation cycle? OK so I've been looking into "Animation Events" not that I understand how they work but it might be what I need for my animation problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |