public override void Hit(float dmg) { BossHealthBar bossHealthBar = FindObjectOfType <BossHealthBar>(); base.Hit(dmg); bossHealthBar.HP_Hit(dmg); }
void Start() { solarGolemMiddle.Initialize(spriteRenderer.sortingOrder); solarGolemTop.Initialize(spriteRenderer.sortingOrder); mainCamera = Camera.main; bossHealthBar = FindObjectOfType <BossHealthBar>(); }
// Use this for initialization void Start() { feedback = ""; bossQ = FindObjectOfType <BossQuestions> (); fbPanel = FindObjectOfType <FeedbackPanel> (); Health = FindObjectOfType <HealthBar> (); bossHealth = FindObjectOfType <BossHealthBar> (); player = FindObjectOfType <PlayerController> (); clear = FindObjectOfType <GameButtons> (); correctFB = new string[] { "Way to go!", "You rock at this!", "Lookin’ good!", "Wow! I’m impressed!", "Keep at it!", "Good going!", "You were born a winner!", "Victory is yours!", "That was awesome!", "Great Job!", "Knew you could do it", "Great Job!", "You’re so good at this!", "That answer was perfect!" }; wrongFB = new string[] { "That was terrible", "Better luck next time!", "You really went with that answer?", "FAIL" }; }
void Start() { healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("Carnivorous Tangle Fiend"); healthBar.targetEnemy = this; StartCoroutine(attackCycle()); }
IEnumerator bossWakeUpSequence() { LeanTween.move(mainCamera.gameObject, bossCamLocation, 2).setEaseOutCirc(); rockStorm.SetActive(true); yield return(new WaitForSeconds(2.1f)); StartCoroutine(wakeUpBoss()); foreach (SentinelRotateRock rock in rocks) { rock.rise(); } yield return(new WaitForSeconds(20 / 12f)); LeanTween.move(mainCamera.gameObject, playerLocation, 2).setEaseOutCirc(); yield return(new WaitForSeconds(2f)); mainCamera.transform.position = playerLocation; cameraScript.freeCam = false; //summonBoss; BossHealthBar healthBar = FindObjectOfType <BossHealthBar>(); healthBar.targetEnemy = sentinelBoss.GetComponent <Enemy>(); healthBar.bossStartUp("Sentinel"); sentinelBoss.SetActive(true); Destroy(this.gameObject); }
// Start is called before the first frame update void Start() { BHB = FindObjectOfType <BossHealthBar>().GetComponent <BossHealthBar>(); maxhealth = boss.GetComponent <Ship>().getHP(); BHB.SetMaxHealth(maxhealth); prepare(); }
private void OnEnable() { health = maxHealth; bossAI = GetComponent <BossAI>(); flash = GetComponent <FlashEff>(); healthBar = GetComponent <BossHealthBar>(); healthBar.SetHealth(health, maxHealth); }
IEnumerator LateStart(float waitTime) { yield return(new WaitForSeconds(waitTime)); healthBar = UIManager.GetBossHealthBar(); healthBar.gameObject.SetActive(true); player = PlayerManager.GetPlayer().transform; }
private void Start() { mainCamera = Camera.main; StartCoroutine(attackProcedure()); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("Adamantoise"); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); }
private void Start() { StartCoroutine(attackProcedure()); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("Ethereal Archer"); wingFlapAudio.Play(); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); centerPosition = Camera.main.transform.position; }
private void Start() { mainCamera = Camera.main; Initialize(); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("The Unnamed War Machine"); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); centerPosition = mainCamera.transform.position; }
private void Start() { mainCamera = Camera.main; healthBar = FindObjectOfType <BossHealthBar>(); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); centerPosition = mainCamera.transform.position; audioManager = FindObjectOfType <AudioManager>(); Initialize(); }
private void Start() { StartCoroutine(attackProcedure()); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("Ethereal Archer"); awakenAudio.Play(); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); helmet.Initialize(this); }
private void Start() { mainCamera = Camera.main; StartCoroutine(attackProcedure()); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("Bog Giant"); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); centerPosition = mainCamera.transform.position; }
private void Start() { mainCamera = Camera.main; GameObject reaperScytheInstant = Instantiate(reaperScythe, transform.position - Vector3.up * 0.5f, Quaternion.Euler(0, 0, 90)); fireReaperScythe = reaperScytheInstant.GetComponent <FireReaperScythe>(); fireReaperScythe.GetComponent <ProjectileParent>().instantiater = this.gameObject; fireReaperScythe.UpdatePosition(transform.position - Vector3.up * 0.5f, spriteRenderer.sortingOrder - 2); bossHealthBar = FindObjectOfType <BossHealthBar>(); Instantiate(pedestal, transform.position - Vector3.up * 1.9f, Quaternion.identity); }
private void Start() { BossEntered.Invoke(); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.SetMaxHealth(health); initialHealth = health; initialY = transform.position.y; toHit = chanceToHit; direction = transform.position; Player[] players = FindObjectsOfType <Player>(); player = players[Random.Range(0, players.Length)].transform; }
private void Start() { mainCamera = Camera.main; Initialize(); healthBar = FindObjectOfType <BossHealthBar>(); healthBar.bossStartUp("Ash Maiden"); healthBar.targetEnemy = this; EnemyPool.addEnemy(this); centerPosition = mainCamera.transform.position; StartCoroutine(updateSpears()); StartCoroutine(movementLoop()); }
void Start() { pickupDisplay = GameObject.Find("LoosePacketDisplay").GetComponent <Text>(); timerDisplay = FindObjectOfType <Timer>(); healthBar = FindObjectOfType <HealthBar>(); frenzyBar = FindObjectOfType <FrenzyBar>(); bossHealthBar = FindObjectOfType <BossHealthBar>(); hackCooldownIcon = GameObject.Find("HackCooldown").GetComponent <CooldownIcon>(); teleportCooldownIcon = GameObject.Find("TeleportCooldown").GetComponent <CooldownIcon>(); textboxHandler = FindObjectOfType <TextboxHandler>(); timer = 0.0f; bossHealthBar.gameObject.SetActive(false); }
protected override void Awake() { base.Awake(); pointerImg = spellMenuPointer.GetComponent <Image>(); interactText = interactPromt.GetComponentInChildren <TextMeshProUGUI>(); playerUnit = playerSC.GetComponent <CharController>(); interactText.text = ""; interactPromt.SetActive(false); displayInfoText = displayInfoTextBG.GetComponentInChildren <TextMeshProUGUI>(); displayInfoText.text = ""; bossHealthBar = GetComponent <BossHealthBar>(); fader = GetComponent <Fader>(); /* * int spellIconsAmount = spellCooldownIcons.Length; * for (int i = 0; i < spellIconsAmount; i++) * { * spellCooldownText[i] = spellCooldownIcons[i].gameObject.GetComponentInChildren<TextMeshProUGUI>(); * spellCooldownText[i].text = ""; * } */ }
private void Start() { mainCamera = Camera.main; bossHealthBar = FindObjectOfType <BossHealthBar>(); }
private void Start() { myAnim = GetComponent <Animator>(); currHealth = maxHealth; bossHealthBar = FindObjectOfType <BossHealthBar>(); }
private void Start() { readyForOpenSequence(); bossHealthBar = FindObjectOfType <BossHealthBar>(); }
// Use this for initialization void Start() { _player = FindObjectOfType<Player>(); barrierArray = new GameObject[barrierPoints.Length]; barrierCount = new int[barrierPoints.Length]; StartCoroutine(CoolDown(Random.Range(1.5f, 6.5f))); bossHealthObject = FindObjectOfType<BossHealthBar>(); bossHealthObject.ShowHealthBar(); bossHealth = bossHealthObject.GetHealthBar(); bossSpot = GameObject.Find("BossTarget").transform; }
protected override void Awake() { base.Awake(); healthBar = FindObjectOfType <BossHealthBar>(); healthBarCanvas = healthBar.GetComponentInChildren <Canvas>(); }
private void Start() { bossDeath = GameObject.Find("Player").GetComponent <BossBehavior>(); bossDeathHp = GameObject.Find("BossHpBackground(Clone)").GetComponent <BossHealthBar>(); }
private void Start() { mainCamera = Camera.main; animator.enabled = false; bossHealthBar = FindObjectOfType <BossHealthBar>(); }
void Start() { bossHealthBar = FindObjectOfType <BossHealthBar>(); EnemyPool.addEnemy(this); InitializeBoss(); }
private void Start() { mainCamera = Camera.main; bossHealthBar = FindObjectOfType <BossHealthBar>(); Instantiate(pheonixRocks, transform.position + Vector3.up * -0.85f, Quaternion.identity); }
/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> void Start() { isBossCreated = false; gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); bossHealthBar = gameManager.bossHealthBar; }
public void setHealthBar(BossHealthBar bar) { healthBar = bar; }
private void Start() { mainCamera = Camera.main; bossHealthBar = FindObjectOfType <BossHealthBar>(); dashDamageHitbox.SetActive(false); }