- Home /
async await Task not working
This is not working as expected.... What you think its the problem? Thanks!
I'm calling this like this: PlayerController.Instance.StartSequence();
public async Task StartSequence()
{
animator.SetBool("isIdle", true);
await Task.Delay(TimeSpan.FromMilliseconds(1150));
animator.SetBool("isIdle", false);
animator.SetBool("isRunning", true);
await Task.Delay(TimeSpan.FromMilliseconds(450));
animator.SetBool("isRunning", false);
animator.SetBool("isIdle", true);
await Task.Delay(TimeSpan.FromMilliseconds(200));
LevelManager.Instance.State = LevelManager.GameState.Playing;
transform.parent = null;
}
Comment
So if it is not working as expected, what is the result instead? The actual result is 99% of what you need to find out why it is not working as expected.
Your answer

Follow this Question
Related Questions
Loading Level Async without switching the level immediately 5 Answers
Hiccups when loading images from resources folder 1 Answer
TCP Socket Async BeginSend never happens 3 Answers
LoadSceneAsync additive and moving scene root problem 1 Answer
Resources.LoadAsync seems to load more than the requested files 0 Answers