private void Reset() { if (!seatControl) { seatControl = GetComponent <SeatControl>(); } }
internal IEnumerator Sit(SeatControl target) { SeatState = target; AnimatorSit = true; animator.SetBool("isInTransition", true); yield return(new WaitForSeconds(0.5f)); while (IsAnimatorInTransition) { yield return(0); } yield return(new WaitForSeconds(2)); }