public override void UpdateAction() { if (!isDone) { timer.AddTime(Time.deltaTime); if (timer.IsDone()) { isDone = true; } } }
public override void UpdateAction() { if (!timer.IsDone()) { timer.AddTime(Time.deltaTime); } else { animator.SetTrigger("BreakLoose"); isDone = true; } }
public override void UpdateAction() { if (!isDone) { followTarget.UpdateAction(); if (!timer.IsDone()) { timer.AddTime(Time.deltaTime); } else { followTarget.EndAction(); isDone = true; } } }
public override void UpdateAction() { if (animator.GetBool("Rest") && animator.GetCurrentAnimatorStateInfo(0).IsName("RestIdle")) { animator.SetBool("Rest", false); } if (animator.GetCurrentAnimatorStateInfo(0).IsName("RestIdle")) { if (!isDone) { if (!timer.IsDone()) { timer.AddTime(Time.deltaTime); } else { isDone = true; animator.SetTrigger("StandUp"); } } } }