override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { RoBear roBear = animator.gameObject.GetComponent <RoBear>(); roBear.enemyInfo.isRangedAttacking = true; roBear.stateInfo.startedRangedAttacking = true; }
override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { RoBear roBear = animator.gameObject.GetComponent <RoBear>(); roBear.ChangeState(new RoBearIdleState()); roBear.PlaySound(AudioParams.SoundPoolGroups.ROBEAR, AudioParams.SoundPools.TALKING); }
public void Enter(Enemy enemy) { roBear = (RoBear)enemy; if (!roBear.stateInfo.isDying) { roBear.EnemyAnim.SetTrigger(roBear.parameterMeleeHash); } }
public override void Enter(Enemy enemy) { roBear = (RoBear)enemy; if (!roBear.stateInfo.isDying) { idleDuration = roBear.bossStats.idleDuration; } }
public void Enter(Enemy enemy) { roBear = (RoBear)enemy; if (!roBear.stateInfo.isDying) { roBear.stateInfo.summonCounter = roBear.bossStats.summonNumber; roBear.stateInfo.isSummoning = true; roBear.EnemyAnim.SetTrigger(roBear.parameterSummonHash); roBear.PlaySoundOnce(AudioParams.SoundPoolGroups.ROBEAR, AudioParams.SoundPools.SUMMONING); } }