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

        animator.AnimateIdle();
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 3
0
 private void Awake()
 {
     skeleton = GetComponentsInChildren <Skeleton>();
     bossAnimationController = GetComponent <BossAnimationController>();
     bearMovement            = GetComponent <BearMovement>();
 }
Ejemplo n.º 4
0
 private void Awake()
 {
     MusicGameplayNonLineair = FMODUnity.RuntimeManager.CreateInstance(MusicGameplay);
     MusicGameplayNonLineair.getParameter("Stage", out StageParameter);
     bossAnim = this.GetComponent <BossAnimationController>();
 }