예제 #1
0
 public void StartAttackAnimation()
 {
     if (canShoot && !Utilities.IsPointerOverUIElement())
     {
         gearPlaceholder = rangedWeapon;
         canShoot        = false;
         Invoke("CooldownReset", rangedWeapon.reloadTime);
         Debug.Log("Attack");
         animator.SetTrigger("baseattack");
     }
 }
예제 #2
0
 public void SetWeapon(RangedWeapon weapon)
 {
     rangedWeapon = weapon;
 }