Esempio n. 1
0
    override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        RoBear roBear = animator.gameObject.GetComponent <RoBear>();

        roBear.enemyInfo.isRangedAttacking      = true;
        roBear.stateInfo.startedRangedAttacking = true;
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 public void Enter(Enemy enemy)
 {
     roBear = (RoBear)enemy;
     if (!roBear.stateInfo.isDying)
     {
         roBear.EnemyAnim.SetTrigger(roBear.parameterMeleeHash);
     }
 }
Esempio n. 4
0
 public override void Enter(Enemy enemy)
 {
     roBear = (RoBear)enemy;
     if (!roBear.stateInfo.isDying)
     {
         idleDuration = roBear.bossStats.idleDuration;
     }
 }
Esempio n. 5
0
 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);
     }
 }