void Start() { //取得 player = GameObject.FindWithTag("PlayerTag"); main_Camera = GameObject.FindWithTag("MainCamera"); _rigid = GetComponent <Rigidbody2D>(); _gravitate = GetComponent <GravitatePlayer>(); _move = GetComponent <MoveConstTime>(); _shoot = GetComponentInChildren <ShootSystem>(); _gravitate.enabled = false; }
private void Start() { player = GameObject.FindWithTag("PlayerTag"); _gravitate = GetComponent <GravitatePlayer>(); }
private void OnEnable() { _gravitate = GetComponent <GravitatePlayer>(); _gravitate.DISTANCE_BORDER = 60f; _gravitate.GRAVITATE_POWER = 250f; }
private void Awake() { //取得 _gravitate_Player = GetComponent <GravitatePlayer>(); _shoot = GetComponent <ShootFunction>(); }