Good afternoon all! I mistakenly started a post in unity-talk but I think here would be better suited for future questions... I have the following code:
IEnumerator WaitCounter()
{
this.transform.position = new Vector3(this.transform.position.x, -2, this.transform.position.z);
if(this.gameObject.transform.parent.childCount == 1)
{
Time.timeScale = 0;
PostProcessing.SetActive(false);
waitCompleted = true;
}
else {
Time.timeScale = .25f;
yield return new WaitForSecondsRealtime(1.5f);
Time.timeScale = 1f;
PostProcessing.SetActive(false);
waitCompleted = true;
}
}
I was informed that I could use Time.unscaledDeltaTime for objects that I do not want to be impaired, mainly the player. I am not really sure how I implement something like that if I am also using the Animator for character movement...is that possible?