Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     //取得
     _accelerator      = GetComponent <BulletAccelerator>();
     nemuno_Controller = transform.parent.GetComponent <Nemuno>();
     //オブジェクトプール
     ObjectPoolManager.Instance.Create_New_Pool(yellow_Rice_Bullet, 48);
 }
 private void Awake()
 {
     //取得
     _controller      = GetComponent <Nemuno>();
     _attack_Func     = GetComponent <NemunoAttackFunction>();
     _shoot           = GetComponentInChildren <NemunoShoot>();
     _barrier         = GetComponentInChildren <NemunoBarrier>();
     _move_Two_Points = GetComponent <MoveConstTime>();
 }
Beispiel #3
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>();
    }