Both these actions take 4 seconds to complete. When I am 2 seconds into these actions I want to speed them up by a factor of 2 so the remaining animations take 1 second instead of 2 seconds. So total time taken will be 2 + 1 = 3 seconds.
Note:
I want all the actions present in the game to speed up / slow down.
I want all future invocations of actions to speed up / slow down too.
The only issue with setting this at the Director’s scheduler level, is that it will work across the entire system. If you want to be very specific, you will need to build a little deeper framework that involves several scheduler instances that can have control over different parts of the system with different flags etc. Note this probably won’t be a simple task, so if it does not matter, just set the timeScale of the Director’s scheduler.