예제 #1
0
 private void Awake()
 {
     this.bloodPropertyBlock = new MaterialPropertyBlock();
     this.cms      = base.transform.GetComponent <CoopMutantSetup>();
     this.mrs      = base.transform.GetComponentInChildren <mutantRagdollSetup>();
     this.animator = base.transform.GetComponentInChildren <Animator>();
     this.health   = base.transform.GetComponentInChildren <EnemyHealth>();
     this.setup    = base.transform.GetComponentInChildren <mutantScriptSetup>();
     this.bodyVar  = base.transform.GetComponentInChildren <setupBodyVariation>();
 }
예제 #2
0
 private void Awake()
 {
     this.cmd          = base.transform.GetComponent <CoopMutantDummy>();
     this.mrs          = base.transform.GetComponent <mutantRagdollSetup>();
     this.dropCollider = base.transform.GetComponent <BoxCollider>();
     this.dropRb       = base.transform.GetComponent <Rigidbody>();
     this.animator     = base.GetComponent <Animator>();
     this.control      = base.GetComponent <dummyAnimatorControl>();
     this.Tr           = base.transform;
     this.layer        = 26;
     this.layerMask    = 1 << this.layer;
 }
예제 #3
0
 private void Start()
 {
     if (BoltNetwork.isClient)
     {
         this.mrs        = base.transform.GetComponentInParent <mutantRagdollSetup>();
         this.startDelay = 1f;
         this.blendSpeed = 7f;
     }
     else
     {
         this.startDelay = 0.6f;
         this.blendSpeed = 6f;
     }
     for (int i = 0; i < this.ragdollJoints.Length; i++)
     {
         this.initRotations.Add(this.ragdollJoints[i].localRotation);
     }
 }
예제 #4
0
 private void Awake()
 {
     this.cmd = base.transform.GetComponent<CoopMutantDummy>();
     this.mrs = base.transform.GetComponent<mutantRagdollSetup>();
     this.dropCollider = base.transform.GetComponent<BoxCollider>();
     this.dropRb = base.transform.GetComponent<Rigidbody>();
     this.animator = base.GetComponent<Animator>();
     this.control = base.GetComponent<dummyAnimatorControl>();
     this.Tr = base.transform;
     this.layer = 26;
     this.layerMask = 1 << this.layer;
 }
예제 #5
0
 private void Start()
 {
     this.mrs = base.transform.GetComponentInChildren <mutantRagdollSetup>();
 }
예제 #6
0
 private void Start()
 {
     if (BoltNetwork.isClient)
     {
         this.mrs = base.transform.GetComponentInParent<mutantRagdollSetup>();
         this.startDelay = 1f;
         this.blendSpeed = 7f;
     }
     else
     {
         this.startDelay = 0.6f;
         this.blendSpeed = 6f;
     }
     for (int i = 0; i < this.ragdollJoints.Length; i++)
     {
         this.initRotations.Add(this.ragdollJoints[i].localRotation);
     }
 }