Exemple #1
0
 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;
 }
Exemple #2
0
 private void Start()
 {
     player     = GameObject.FindWithTag("PlayerTag");
     _gravitate = GetComponent <GravitatePlayer>();
 }
Exemple #3
0
 private void OnEnable()
 {
     _gravitate = GetComponent <GravitatePlayer>();
     _gravitate.DISTANCE_BORDER = 60f;
     _gravitate.GRAVITATE_POWER = 250f;
 }
 private void Awake()
 {
     //取得
     _gravitate_Player = GetComponent <GravitatePlayer>();
     _shoot            = GetComponent <ShootFunction>();
 }