Exemplo n.º 1
0
    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();
    }
Exemplo n.º 3
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();
    }
Exemplo n.º 5
0
    //入る
    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;
    }
Exemplo n.º 6
0
    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();
    }