- Home /
 
               Question by 
               paulwendellestrella29 · Nov 04, 2018 at 01:27 AM · 
                1080p  
              
 
              Pls help me. How can i convert the gameobject into string so i can mak a condution if this gameobject is been destryed end the game.
Print(gameObject.name + "hasdied!"); Gamenagers.removeobjectfromlist(gmeobject,lefttower); Destroy(gameobject);
               Comment
              
 
               
              Answer by zxc76_die · Nov 04, 2018 at 01:57 AM
Add in gameobject this event:
 private void OnDestroy()
     {
 Print(transform.name + "hasdied!"); 
 }
Maybe I did not correctly translate your question.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                