Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     animator      = GetComponent <Animator>();
     animatorState = animator.GetCurrentAnimatorStateInfo(0);
     weapon        = GetComponentInChildren <WeaponColliderBasic>();
     AttackReseter = StartCoroutine(AttackReset());
     audioSource   = GetComponent <AudioSource>();
     playerMove    = GetComponent <PlayerMove>();
     playerHP      = GetComponent <PlayerHP>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     weapon      = GetComponentInChildren <WeaponColliderBasic>();
     weaponTrail = GetComponentInChildren <MeleeWeaponTrail>();
 }