Question by
carloszhu25 · Jun 29, 2021 at 10:56 AM ·
newbie
I want to delete a UI text and then create a new one by script
I was trying to destroy it in this part of script
void OnCollisionEnter2D ( Collision2D collision )
{
Destroy( gameObject ); // Player
Destroy( scoreText.gameObject );
}
Comment