protected override void OnAwake()
 {
     base.OnAwake();
     m_capsuleCollider = GetComponent <CapsuleCollider>();
     m_animator        = GetComponent <Animator>();
     m_navAgent        = GetComponent <NavMeshAgent>();
     m_currentPhysMat  = capacity.general.defaultPhysicsMaterial;
 }
Esempio n. 2
0
 public PoolElement(PhysicsMaterialEx material, Transform parent)
 {
     gameObject = Instantiate(material.bulletHitDecal, Vector3.zero, Quaternion.identity, parent);
 }
Esempio n. 3
0
 public override void Reset()
 {
     useAnimator            = true;
     defaultPhysicsMaterial = null;
 }