示例#1
0
    // Use this for initialization
    void Awake()
    {
        animator     = GetComponent <BossAnimationController>();
        sound        = GetComponent <EnemySoundController>();
        tm           = GameObject.FindGameObjectWithTag("TeamManager").GetComponent <TeamManager>();
        turningTimer = timeSpentTurning;

        animator.AnimateIdle();
    }
示例#2
0
    void Awake()
    {
        currentHealth = maxHealth;

        animator_B = GetComponent <BossAnimationController>();

        healthBarCanvas_B = transform.FindChild("EnemyHealthCanvas").gameObject;

        healthBar_B            = healthBarCanvas_B.transform.FindChild("Health").GetComponent <Image>();
        healthBar_B.fillAmount = 1;
        HideHealthBar();

        dmgTxtCanvas_B    = transform.FindChild("FloatingDamageCanvas").gameObject;
        damageText_B      = dmgTxtCanvas_B.transform.FindChild("FloatingDamageText").gameObject;
        damageTextTrans_B = damageText_B.transform;
        teamManager_B     = GameObject.FindGameObjectWithTag("TeamManager").GetComponent <TeamManager>();

        EndScreen.SetActive(false);
    }
示例#3
0
 private void Awake()
 {
     skeleton = GetComponentsInChildren <Skeleton>();
     bossAnimationController = GetComponent <BossAnimationController>();
     bearMovement            = GetComponent <BearMovement>();
 }
示例#4
0
 private void Awake()
 {
     MusicGameplayNonLineair = FMODUnity.RuntimeManager.CreateInstance(MusicGameplay);
     MusicGameplayNonLineair.getParameter("Stage", out StageParameter);
     bossAnim = this.GetComponent <BossAnimationController>();
 }