示例#1
0
 public void ReturnToIdle()
 {
     timeToNextAttack    = Random.Range(minIdleTime, maxIdleTime);
     previousTargetIndex = currentTarget.id;
     currentAttack       = AttackBeingPerformed.None;
     currentTarget       = null;
     animator.AnimateIdle();
 }
示例#2
0
    // Use this for initialization
    void Awake()
    {
        animator     = GetComponent <BossAnimationController>();
        sound        = GetComponent <EnemySoundController>();
        tm           = GameObject.FindGameObjectWithTag("TeamManager").GetComponent <TeamManager>();
        turningTimer = timeSpentTurning;

        animator.AnimateIdle();
    }