// 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>();
 }
Ejemplo n.º 2
0
 // 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>();
 }
Ejemplo n.º 3
0
 // 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;
 }