unity execute once code example
Example: unity execute once
bool MyFunctionCalled = false;
void Update()
{
If(MyFunctionCalled==false)
{
MyFunctionCalled = true;
Do Your Stuff Here And It Will Be Only Done Once !.
}
}