Answers for "how to call something once in update"

C#
3

how to call something once in update

bool isDone = false;

void Update() {
    if (!isDone) {
        // put your code that runs once here
        isDone = true;
    }
}
Posted by: Guest on July-23-2020

Code answers related to "how to call something once in update"

C# Answers by Framework

Browse Popular Code Answers by Language