void Awake() { //取得 _controller = GetComponent <Aunn>(); _attack = GetComponent <AunnAttack>(); _shoot = GetComponentInChildren <AunnShoot>(); _rigid = GetComponent <Rigidbody2D>(); _move = GetComponent <MoveMotion>(); foot_Collision = transform.Find("Foot").GetComponent <ChildColliderTrigger>(); }
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"); }