Exemple #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>();
 }
 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;
 }
 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);
     }
 }
 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;
 }
Exemple #5
0
 private void Start()
 {
     this.mrs = base.transform.GetComponentInChildren <mutantRagdollSetup>();
 }
 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);
     }
 }