protected override IEnumerator Enter() { _boss._isHide = false; _boss.SoundPlay("Hit"); _boss.OroraActive(true); _boss.isInvincible = false; _boss.m_collider.enabled = true; _boss.animator.SetTrigger("Hit"); Buffer.InvincibleActive(false); Buffer.SuperArmourAcitve(true); yield return(null); }
protected override IEnumerator Enter() { _boss._isHide = false; _boss.isInvincible = true; _boss.m_collider.enabled = false; _boss._transform.localScale = _boss._baseSize; _boss.SetOrora(_boss._numPattern); _boss.OroraActive(true); BossHPBar.Display(_boss); Buffer.InvincibleActive(true); Global.shared <SoundManager>().ChangeBGM("BossMode"); yield return(new WaitForSeconds(1.0f)); }
protected override IEnumerator Enter() { //_boss._camera.ShakeCamera(1.0f); yield return(new WaitForSeconds(1.0f)); _boss._isHide = false; _boss.isInvincible = false; _boss.m_collider.enabled = true; Buffer.InvincibleActive(false); Buffer.SuperArmourAcitve(true); _boss.LookTarget(_boss._player.transform); _boss.OroraActive(true); //_boss.RandomSpawnPig(); _boss.SpawNormalPig(); _boss.animator.SetTrigger("Attack"); yield return(null); }
protected override IEnumerator Enter() { if (_boss._numPattern == 0) { if (!_boss._isHide) { Buffer.InvincibleActive(true); Buffer.SuperArmourAcitve(false); yield return(_boss.Hide()); } } else { Buffer.InvincibleActive(false); Buffer.SuperArmourAcitve(true); _boss.animator.SetTrigger("Rush"); _boss.OroraActive(true); } yield return(null); }
protected override IEnumerator Execute() { //_boss._camera.ShakeCamera(1.0f); yield return(new WaitForSeconds(0.5f)); hit = Physics2D.Raycast(_boss._player.transform.position, Vector2.down, Mathf.Infinity, LayerMask.GetMask("Ground")); _boss._transform.position = hit.point; if (_boss._warringImg != null) { _boss._warringImg.SetActive(true); } yield return(new WaitForSeconds(0.5f)); if (_boss._warringImg != null) { _boss._warringImg.SetActive(false); } _boss._isHide = false; _boss.isInvincible = false; _boss.m_collider.enabled = true; Buffer.InvincibleActive(true); Buffer.SuperArmourAcitve(false); _boss.OroraActive(true); _boss.animator.SetTrigger("Attack"); _boss._numWayPoint = Random.Range(0, _boss._wayPoints.Length); yield return(new WaitForSeconds(1.0f)); _boss.SetStatePattern <IdleState>(); yield return(null); }
protected override IEnumerator Enter() { _boss.ChildAllDead(); BossHPBar.Conceal(); _boss.OroraActive(true); _boss._isHide = true; _boss._numPattern = 0; _boss.isInvincible = true; _boss.m_collider.enabled = false; _boss.moveSpeed = _boss._baseMoveSpeed; Buffer.InvincibleActive(false); Buffer.SuperArmourAcitve(false); Global.shared <SoundManager>().ChangeBGM("Stage-000"); //_boss._camera.ShakeCamera(1.0f); yield return(new WaitForSeconds(1.0f)); _boss._arrow.SetActive(true); }