Esempio n. 1
0
    //わからなかったら他の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();
    }