// 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>(); }
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>(); }