private void Awake()
 {
     //取得
     _controller      = GetComponent <Nemuno>();
     _attack_Func     = GetComponent <NemunoAttackFunction>();
     _shoot           = GetComponentInChildren <NemunoShoot>();
     _barrier         = GetComponentInChildren <NemunoBarrier>();
     _move_Two_Points = GetComponent <MoveConstTime>();
 }
Ejemplo n.º 2
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>();
    }