public void FireArrow() { if (target == null) { return; } else if (IsTargetInnerRange() == false) { animator.SetTrigger(AnimationHash.Idle); return; } if (ActorProxy.isPlayingAI) { var diceActorProxy = ActorProxy as DiceActorProxy; if (Random.Range(0, 100) < diceActorProxy.diceInfo.effectProbability) { ActorProxy.FireBulletWithRelay(E_BulletType.ICE_FREEZE_BULLET, target, power, bulletMoveSpeed, diceActorProxy.effectDurationTime); } else { ActorProxy.FireBulletWithRelay(E_BulletType.ICE_NORMAL_BULLET, target, power, bulletMoveSpeed); } } SoundManager.instance.Play(clip_Attack); }
public void FireArrow() { if (ActorProxy.isPlayingAI) { ActorProxy.FireBulletWithRelay(E_BulletType.TURRET_BULLET, flyingTarget, power, bulletMoveSpeed); } }
public override IEnumerator Attack() { ActorProxy.PlayAnimationWithRelay(AnimationHash.Attack, target); yield return(new WaitForSeconds(2f)); ActorProxy.FireBulletWithRelay(E_BulletType.VALLISTA_SPEAR, target, power, 12f); }
public void FireArrow() { SoundManager.instance.Play(clip_Shot); if (target != null) { if (ActorProxy.isPlayingAI) { ActorProxy.FireBulletWithRelay(E_BulletType.ARROW_BULLET, target, power, bulletMoveSpeed); } } }
public void FireArrow() { if (target == null || IsTargetInnerRange() == false) { animator.SetTrigger(AnimationHash.Idle); return; } if (ActorProxy.isPlayingAI) { ActorProxy.FireBulletWithRelay(E_BulletType.ARBITER_BULLET, target, power, bulletMoveSpeed); } }
public void FireArrow() { //TODO: 빼도 되지 않을까? 고민해보자 if (target == null || IsTargetInnerRange() == false) { animator.SetTrigger(AnimationHash.Idle); return; } if (ActorProxy.isPlayingAI) { ActorProxy.FireBulletWithRelay(E_BulletType.WIND_BULLET, target, power, 10f); } }
public void FireArrow() { if (target == null || IsTargetInnerRange() == false) { animator.SetTrigger(AnimationHash.Idle); return; } SoundManager.instance.Play(clip_Fire); if (ActorProxy.isPlayingAI) { ActorProxy.FireBulletWithRelay(E_BulletType.POSU_BULLET, target, power, bulletMoveSpeed); } }
public void FireSpear() { if (target == null) { return; } else if (IsTargetInnerRange() == false) { animator.SetTrigger(AnimationHash.Idle); return; } if (ActorProxy.isPlayingAI) { ActorProxy.FireBulletWithRelay(E_BulletType.BABYDRAGON_BULLET, target, power, 10f); } }
public void FireArrow() { if (target == null) { return; } else if (IsTargetInnerRange() == false) { animator.SetTrigger(AnimationHash.Idle); return; } if (ActorProxy.isPlayingAI) { var bulletSpeed = target.isFlying ? bulletMoveSpeedByFlying : bulletMoveSpeedByGround; ActorProxy.FireBulletWithRelay(E_BulletType.SPEAR_BULLET, target, effect, bulletSpeed); } }