private void Start() { health = FindObjectOfType <BossHealth>(); boss = GetComponentInParent <ADV_Boss>(); health.AddPartToList(this); setHpBar(); }
private void Start() { boss = GetComponentInParent <ADV_Boss>(); if (boss == null) { return; } player = boss.Get_player(); }
public override void ENTERSTATE(ADV_Boss b, Animator a) { boss = b; anim = a; boss.wait = false; int animationIndex; Debug.Log("RugbyPhase"); animationIndex = (int)BossAnimations.rugby; anim.SetInteger("PHASE", animationIndex); player = b.Get_player(); attackTime = attackDelay; b.activePhaseParts(); }
public virtual void ENTERSTATE(ADV_Boss b, Animator a) { boss = b; transform = b.get_UpObject(); anim = a; boss.wait = false; int animationIndex; animationIndex = (int)BossAnimations.Idle1; anim.SetInteger("PHASE", animationIndex); player = b.Get_player(); offset = transform.position - player.position; attackCounter = 3; b.activePhaseParts(); }
//わからなかったら他のphaseを見て下さい public override void ENTERSTATE(ADV_Boss b, Animator a) { boss = b; anim = a; int animationIndex; animationIndex = (int)BossAnimations.battleShip; anim.SetInteger("PHASE", animationIndex); player = b.Get_player(); attackCounter = 3; boss.wait = false; head = boss.getHead(); head.GetComponent <Collider>().enabled = true; head.tag = "Boss"; head.GetComponent <BossPart>().enabled = true; b.activePhaseParts(); }
public override void ENTERSTATE(ADV_Boss b, Animator a) { boss = b; transform = b.transform; anim = a; int animationIndex; animationIndex = (int)BossAnimations.phase3; anim.SetInteger("PHASE", animationIndex); player = b.Get_player(); b.addElentToList(b.middlePortal); b.changeEnemyToSpawn(bug); spawningCounter = counter; b.deactiveCamera(); boss.wait = false; b.getHead().GetComponent <BossPart>().enabled = true; b.activePhaseParts(); }
//入る public override void ENTERSTATE(ADV_Boss b, Animator a) { //references boss = b; anim = a; int animationIndex; Debug.Log("RugbyPhase"); //animation animationIndex = (int)BossAnimations.rugby; anim.SetInteger("PHASE", animationIndex); //player ref player = b.Get_player(); attackTime = attackDelay; //damegeable parts active b.activePhaseParts(); //update play boss.wait = false; }
public override void ENTERSTATE(ADV_Boss b, Animator a) { boss = b; transform = b.transform; anim = a; int animationIndex; animationIndex = (int)BossAnimations.ground; anim.SetInteger("PHASE", animationIndex); player = b.Get_player(); GameObject fadeScreen; fadeScreen = GameObject.Find("FadeScreen"); if (fadeScreen != null) { fadeScreen.GetComponent <Animation>().Play("unfade"); } spawningCounter = counter; boss.wait = false; b.activePhaseParts(); }