private void doStart() { this.ragDollSetup = base.transform.GetComponent <clsragdollify>(); this.animator = base.gameObject.GetComponent <Animator>(); this.setup = base.transform.GetComponent <mutantScriptSetup>(); Transform[] componentsInChildren = base.transform.root.GetComponentsInChildren <Transform>(); Transform[] array = componentsInChildren; for (int i = 0; i < array.Length; i++) { Transform transform = array[i]; if (transform.name == "weaponLeftGO") { this.weaponLeft = transform.gameObject; } if (transform.name == "weaponLeftGO1") { this.weaponLeft1 = transform.gameObject; } if (transform.name == "weaponRightGO") { this.weaponRight = transform.gameObject; } if (transform.name == "weaponGO") { this.weaponMain = transform.gameObject; this.weaponMainCollider = transform.GetComponent <Collider>(); } } }
private void Start() { this.ragDollSetup = base.transform.GetComponent <clsragdollify>(); this.ai = base.GetComponent <mutantAI>(); this.weaponCollider = base.GetComponentInChildren <enemyWeaponMelee>().gameObject.GetComponent <CapsuleCollider>(); this.pushBody = base.transform.parent.GetComponent <pushRigidBody>(); }
private void OnEnable() { this.tr = base.transform; this.anim = base.gameObject.GetComponent <Animator>(); this.ragDoll = base.GetComponent <clsragdollify>(); this.layerMask1 = 67108864; this.idleAnimationHash = Animator.StringToHash("Base Layer.Idle"); this.flyTagHash = Animator.StringToHash("flying"); this.hopIntHash = Animator.StringToHash("hop"); this.flyingBoolHash = Animator.StringToHash("flying"); this.peckBoolHash = Animator.StringToHash("peck"); this.ruffleBoolHash = Animator.StringToHash("ruffle"); this.preenBoolHash = Animator.StringToHash("preen"); this.landingBoolHash = Animator.StringToHash("landing"); this.singTriggerHash = Animator.StringToHash("sing"); this.flyingDirectionHash = Animator.StringToHash("flyingDirectionX"); this.anim.SetFloatReflected("IdleAgitated", this.agitationLevel); if (this.anim.enabled) { this.anim.SetBool(this.flyingBoolHash, true); this.anim.SetBool(this.landingBoolHash, false); } if (!base.IsInvoking("groundHeightCheck")) { FMODCommon.PreloadEvents(this.AllEventPaths()); } this.fleeing = false; }
private void Start() { this.rb = base.transform.GetComponent <Rigidbody>(); this.col = base.transform.GetComponent <Collider>(); this.ragdoll = base.transform.GetComponent <clsragdollify>(); this.animator = base.GetComponent <Animator>(); this.mySkin = base.transform.GetComponentInChildren <SkinnedMeshRenderer>(); this.sceneInfo = Scene.SceneTracker; GameObject gameObject = GameObject.FindGameObjectWithTag("OceanHeight"); if (gameObject) { this.oceanTr = gameObject.transform; } this.tr = base.transform; this.initBool = true; this.setupInvokes(); if (!base.GetComponent <Rigidbody>()) { base.gameObject.AddComponent <Rigidbody>(); } base.GetComponent <Rigidbody>().isKinematic = true; this.animator.speed = this.Speed; if (this.typeCaveFish) { this.randScale = UnityEngine.Random.Range(0.35f, 0.5f); base.transform.localScale = new Vector3(this.randScale, this.randScale, this.randScale); } this.allPlayers = new List <GameObject>(Scene.SceneTracker.allPlayers); this.updatePlayerTargets(); }
void Start() { animation.wrapMode = WrapMode.Loop; varlocalragdollifier = GetComponent<clsragdollify>(); if (varlocalragdollifier != null) { if (varlocalragdollifier.vargamragdoll != null) varcanragdoll = true; } }
private void Start() { base.GetComponent<Animation>().wrapMode = WrapMode.Loop; this.varlocalragdollifier = base.GetComponent<clsragdollify>(); if (this.varlocalragdollifier != null && this.varlocalragdollifier.vargamragdoll != null) { this.varcanragdoll = true; } }
private void Start() { base.GetComponent <Animation>().wrapMode = WrapMode.Loop; this.varlocalragdollifier = base.GetComponent <clsragdollify>(); if (this.varlocalragdollifier != null && this.varlocalragdollifier.vargamragdoll != null) { this.varcanragdoll = true; } }
private void Start() { this.skin = base.transform.GetComponentInChildren <SkinnedMeshRenderer>(); this.tr = base.transform; this.ragDoll = base.GetComponent <clsragdollify>(); this.initFlyingSpeed = this.flyingSpeed; this.initRotateSpeed = this.rotateSpeed; this.layerMask1 = 67108864; this.ragDoll.bird = true; base.Invoke("initThis", 0.5f); base.InvokeRepeating("CleanupEventInstances", 1f, 1f); }
void OnTriggerEnter() { if (vargampassenger != null) { varlocalragdollifier = vargampassenger.GetComponent<clsragdollify>(); if (varlocalragdollifier != null) { if (!varengaged) { varlocalragdollifier.metgoragdoll(); varengaged = true; } Destroy(transform.root.constantForce,1); Destroy(vargampassenger.gameObject); } } }
private void Awake() { this.ragDollSetup = base.GetComponent <clsragdollify>(); this.setup = base.GetComponent <mutantScriptSetup>(); this.typeSetup = base.transform.parent.GetComponent <mutantTypeSetup>(); this.ai = base.GetComponent <mutantAI>(); this.familyFunctions = base.transform.parent.GetComponent <mutantFamilyFunctions>(); this.targetSwitcher = base.GetComponentInChildren <mutantTargetSwitching>(); if (!this.ai.creepy) { this.animator = base.GetComponent <Animator>(); } else { this.animator = base.GetComponentInChildren <Animator>(); } this.MP = base.gameObject.GetComponent <mutantPropManager>(); this.bloodPropertyBlock = new MaterialPropertyBlock(); }
private void Start() { this.cls = base.transform.GetComponentInChildren <clsragdollify>(); }
private void Start() { this.cls = base.transform.GetComponentInChildren<clsragdollify>(); }
private void Awake() { this.anim = base.gameObject.GetComponent <Animator>(); this.ragDoll = base.GetComponent <clsragdollify>(); }
private void Start() { this.ragDoll = base.GetComponent <clsragdollify>(); }
private void Awake() { this.ragDollSetup = base.GetComponent<clsragdollify>(); this.setup = base.GetComponent<mutantScriptSetup>(); this.typeSetup = base.transform.parent.GetComponent<mutantTypeSetup>(); this.ai = base.GetComponent<mutantAI>(); this.familyFunctions = base.transform.parent.GetComponent<mutantFamilyFunctions>(); this.targetSwitcher = base.GetComponentInChildren<mutantTargetSwitching>(); if (!this.ai.creepy) { this.animator = base.GetComponent<Animator>(); } else { this.animator = base.GetComponentInChildren<Animator>(); } this.MP = base.gameObject.GetComponent<mutantPropManager>(); this.bloodPropertyBlock = new MaterialPropertyBlock(); }
private void doStart() { this.ragDollSetup = base.transform.GetComponent<clsragdollify>(); this.animator = base.gameObject.GetComponent<Animator>(); this.setup = base.transform.GetComponent<mutantScriptSetup>(); Transform[] componentsInChildren = base.transform.root.GetComponentsInChildren<Transform>(); Transform[] array = componentsInChildren; for (int i = 0; i < array.Length; i++) { Transform transform = array[i]; if (transform.name == "weaponLeftGO") { this.weaponLeft = transform.gameObject; } if (transform.name == "weaponLeftGO1") { this.weaponLeft1 = transform.gameObject; } if (transform.name == "weaponRightGO") { this.weaponRight = transform.gameObject; } if (transform.name == "weaponGO") { this.weaponMain = transform.gameObject; this.weaponMainCollider = transform.GetComponent<Collider>(); } } }
private void Awake() { this.anim = base.gameObject.GetComponent<Animator>(); this.ragDoll = base.GetComponent<clsragdollify>(); }