public void Update(float deltaT) { if (navMeshAgent.enabled) { navMeshAgent.enabled = false; } ragdollSinkTimer += deltaT; //UnityEngine.Debug.Log("Ragdoll sink timer = " + ragdollSinkTimer); if (ragdollSinkTimer > startRagdollSink) { Sink(deltaT); } if (animatedDeath) { //Animation event cannot link to any functions here without using a wrapper from a MonoBehaviour script attached to the zombie. if (animator.GetBool("isWalking")) { animator.SetBool("isWalking", false); } if (!animator.GetBool("isDead")) { animator.SetBool("isDead", true); } return; } if (ragdollRB == null) { EnableRigidBodyPhysics(); } }
public bool GetValue() { Value = animator.GetBool(paramName); return(Value); }