Answers for "c# destroy function...unity"

C#
0

c# destroy function...unity

Destroy(gameObject); //this will destroy.
//the game object is the object where the script is inside

Destroy(gameObject,f3); //this will destroy the object when waiting 3 sec

//destroying after the 3 seconds varible
float waitTime = f3;
Destroy(gameObject,waitTime)
Posted by: Guest on February-14-2022

C# Answers by Framework

Browse Popular Code Answers by Language