Ejemplo n.º 1
0
    public override void Enter()
    {
        _Camera = GameObject.FindWithTag("MainCamera");
        
        _CurrentRoarTime = 0f;
        //Debug.Log("Roar State Enter");

        _BossShootL = GameObject.FindWithTag("BossLShooter").GetComponent<BossShooter>();
        _BossShootR = GameObject.FindWithTag("BossRShooter").GetComponent<BossShooter>();

        _Anim = GetComponent<Animator>();
        _Anim.SetInteger("State", 0);
        //call castshockwave function on each side of the boss
        _BossShootL.CastShockwave();
        _BossShootR.CastShockwave();

        
        FlipSprite();
    }
Ejemplo n.º 2
0
    public override void Enter()
    {
        _Camera = GameObject.FindWithTag("MainCamera");

        _CurrentRoarTime = 0f;
        //Debug.Log("Roar State Enter");

        _BossShootL = GameObject.FindWithTag("BossLShooter").GetComponent <BossShooter>();
        _BossShootR = GameObject.FindWithTag("BossRShooter").GetComponent <BossShooter>();

        _Anim = GetComponent <Animator>();
        _Anim.SetInteger("State", 0);
        //call castshockwave function on each side of the boss
        _BossShootL.CastShockwave();
        _BossShootR.CastShockwave();


        FlipSprite();
    }