how to invoke something unity code example
Example: unity invoke
void Start()
{
Invoke(/*In quotes is the function name*/"TurnLastPOff", /*Time to wait*/2);
}
public void StartWithDelay()
{
print("This should be printed after 2 seconds");
}
void Start()
{
Invoke(/*In quotes is the function name*/"TurnLastPOff", /*Time to wait*/2);
}
public void StartWithDelay()
{
print("This should be printed after 2 seconds");
}