- Home /
 
               Question by 
               ChrisX930 · Dec 12, 2016 at 07:50 AM · 
                c#collisioncoroutinetransform.position  
              
 
              Transform Object over Players head before destroying
Hey Guys,
I want to show the Object the Player collided with over the head of the player before destroying it. It should follow the Player over his head before it gets destroyed. Right now, it looks like this;
     IEnumerator ShowItemOverHead() {
             Destroy(transform.Find("Shadow").gameObject);
             transform.position = new Vector3 (transform.position.x, transform.position.y + 0.7f, transform.position.z);   
             yield return new WaitForSeconds(0.3f);
             GameObject.Destroy (gameObject);
         }
could you help me out with this? Thanks!
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                