void Start() { block_Barrier = GetComponentInChildren <NarumiBlockBarrier>(); rect_Block_Gen = GetComponentInChildren <ObjectRectFormationGenerator>(); _effect = GetComponentInChildren <NarumiEffects>(); _shoot = GetComponentInChildren <NarumiShoot>(); _main = GetComponent <Narumi>(); _move_Const_Time = GetComponent <MoveConstTime>(); _move_Const_Speed = GetComponent <MoveConstSpeed>(); camera_Shake = GameObject.FindWithTag("MainCamera").GetComponent <CameraShake>(); }
private void Awake() { //取得 _controller = GetComponent <Aunn>(); _sprite = GetComponent <SpriteRenderer>(); _rigid = GetComponent <Rigidbody2D>(); _shoot = GetComponentInChildren <AunnShoot>(); _copy = GetComponentInChildren <AunnCopy>(); _copy_Shoot = _copy.GetComponentInChildren <AunnShoot>(); _effect = GetComponentInChildren <AunnEffect>(); _se = GetComponentInChildren <SEManager>(); _move_Const_Speed = GetComponent <MoveConstSpeed>(); _move_Motion = GetComponent <MoveMotion>(); _move_Const_Time = GetComponent <MoveConstTime>(); foot_Collider = transform.Find("Foot").GetComponent <ChildColliderTrigger>(); player = GameObject.FindWithTag("PlayerTag"); }