Exemple #1
0
 void Start()
 {
     bossBreathEvent = GetComponent <BossBreathEvent>();
     bossStumpEvent  = GetComponent <BossDonguriAnim>();
     bossBreathHit   = breathObj.GetComponent <BossDonguriBreathHit>();
     playerScript    = player.GetComponent <PlayerMove>();
 }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        agent     = GetComponent <NavMeshAgent>();
        obstacle  = GetComponent <NavMeshObstacle>();
        animator  = donguri.GetComponent <Animator>();
        bossanim  = donguri.GetComponent <BossBreathEvent>();
        particle  = BparticleObj.GetComponent <ParticleSystem>();
        tparticle = TparticleObj.GetComponent <ParticleSystem>();
        rb        = GetComponent <Rigidbody>();
        wallcheck = wallCheckObj.GetComponent <WallCheck>();
        GameObject targetObject = target.gameObject;

        timecount = 0;
        particle.Stop();
        tparticle.Stop();
        TSetSpeed = Tspeed;

        //サウンド
        Breath     = GetComponent <CriAtomSource>();
        stopBreath = true;
        Tackle     = TackleSound.GetComponent <CriAtomSource>();
    }