Exemplo n.º 1
0
 new void Awake()
 {
     base.Awake();
     //取得
     _anim     = GetComponent <Animator>();
     _rigid    = GetComponent <Rigidbody2D>();
     _collider = GetComponent <CapsuleCollider2D>();
     _attack   = GetComponent <NemunoAttack>();
     _BGM      = new NemunoBGMTimeKeeper();
 }
 private void Awake()
 {
     //取得
     _anim            = GetComponent <Animator>();
     _rigid           = GetComponent <Rigidbody2D>();
     _collider        = GetComponent <CapsuleCollider2D>();
     _boss_Controller = GetComponent <BossEnemy>();
     _attack          = GetComponent <NemunoAttack>();
     _BGM             = new NemunoBGMTimeKeeper();
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        //取得
        _movie = GetComponent <Stage2_BossMovie>();
        var nemuno = GameObject.Find("Nemuno");

        nemuno_Attack = nemuno.GetComponent <NemunoAttack>();
        boss_Enemy    = nemuno.GetComponent <BossEnemy>();

        //フェードイン
        FadeInOut.Instance.Start_Fade_In(new Color(0, 0, 0), 0.02f);
        //ボス前ムービー開始
        _movie.Start_Before_Boss_Movie();
    }
Exemplo n.º 4
0
    private void Awake()
    {
        //取得
        _controller      = GetComponent <Nemuno>();
        _attack          = GetComponent <NemunoAttack>();
        _sound           = GetComponentInChildren <NemunoSoundEffect>();
        _collision       = GetComponent <NemunoCollision>();
        _shoot           = GetComponentInChildren <NemunoShoot>();
        _barrier         = GetComponentInChildren <NemunoBarrier>();
        _sprite          = GetComponent <SpriteRenderer>();
        _move_Two_Points = GetComponent <MoveConstTime>();

        player       = GameObject.FindWithTag("PlayerTag");
        camera_Shake = GameObject.FindWithTag("MainCamera").GetComponent <CameraShake>();
    }