// Use this for initialization void Awake() { animator = GetComponent <BossAnimationController>(); sound = GetComponent <EnemySoundController>(); tm = GameObject.FindGameObjectWithTag("TeamManager").GetComponent <TeamManager>(); turningTimer = timeSpentTurning; animator.AnimateIdle(); }
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); }
private void Awake() { skeleton = GetComponentsInChildren <Skeleton>(); bossAnimationController = GetComponent <BossAnimationController>(); bearMovement = GetComponent <BearMovement>(); }
private void Awake() { MusicGameplayNonLineair = FMODUnity.RuntimeManager.CreateInstance(MusicGameplay); MusicGameplayNonLineair.getParameter("Stage", out StageParameter); bossAnim = this.GetComponent <BossAnimationController>(); }