Example #1
0
 void Update()
 {
     while (Time.time - lastFunctionSwitch >= functionDuration)
     {
         lastFunctionSwitch += functionDuration;
         functionName        = FunctionLibrary.GetNext(functionName);
     }
     UpdateFunction();
 }