void Start()
 {
     anim = GetComponent<Animator>();
     col = GetComponent<CapsuleCollider>();
     throwMechanics = GetComponent<ThrowMechanics> ();
     if(anim.layerCount ==2)
         anim.SetLayerWeight(1, 1);
     audioSource = GetComponent<AudioSource> ();
     npcTakeDamage = GameObject.FindGameObjectWithTag ("npc").GetComponent<NpcTakeDamage> ();
 }
 void Start()
 {
     anim           = GetComponent <Animator>();
     col            = GetComponent <CapsuleCollider>();
     throwMechanics = GetComponent <ThrowMechanics> ();
     if (anim.layerCount == 2)
     {
         anim.SetLayerWeight(1, 1);
     }
     audioSource = GetComponent <AudioSource> ();
 }
Exemple #3
0
 void Start()
 {
     anim           = GetComponent <Animator>();
     col            = GetComponent <CapsuleCollider>();
     throwMechanics = GetComponent <ThrowMechanics> ();
     if (anim.layerCount == 2)
     {
         anim.SetLayerWeight(1, 1);
     }
     audioSource   = GetComponent <AudioSource> ();
     npcTakeDamage = GameObject.FindGameObjectWithTag("npc").GetComponent <NpcTakeDamage> ();
 }
 protected override void Start()
 {
     base.Start();
     throwMechanics = GetComponent<ThrowMechanics>();
 }
 protected override void Start()
 {
     base.Start();
     throwMechanics = GetComponent <ThrowMechanics>();
 }
 void Start()
 {
     walkMechanics = GetComponent<WalkMechanics> ();
     throwMechanics = GetComponent<ThrowMechanics>();
     crouchMechanics = GetComponent<CrouchMechanics>();
 }