// Use this for initialization void Start() { carryAndThrow = GetComponent <CarryAndThrow>(); globalState = GameObject.Find("RigidBodyFPSController").GetComponent <RigidbodyFirstPersonController>(); UI_ChokeAndKill = GameObject.Find("UI_ChokeAndKill"); blade = GameObject.Find("Blade"); air_Assassination = transform.root.GetComponent <Air_Assassination>(); }
// Use this for initialization void Start() { playerTransform = GameObject.Find("RigidBodyFPSController").GetComponent <Transform>(); if (GetComponent <Animation>()) { myAnimation = GetComponent <Animation>(); } UpdateState(false); pocket = GameObject.Find("Pocket").GetComponent <Transform>(); carryAndThrow = GameObject.Find("MainCamera").GetComponent <CarryAndThrow>(); }
// Use this for initialization void Start() { AI_Behaviour = transform.root.gameObject.GetComponent <AI_Behaviour>(); if (mainHealth) { SetKinematic(true, false); } hp = maxHp; AI_HealthMain = transform.root.gameObject.GetComponent <AI_Health>(); carryAndThrow = GameObject.Find("MainCamera").GetComponent <CarryAndThrow>(); myBodyHips = transform.root.Find("mixamorig:Hips").gameObject; }