//Awake private void Awake() { //取得 _rigid = GetComponent <Rigidbody2D>(); _anim = GetComponent <Animator>(); _transition = GetComponent <PlayerTransition>(); _transition_Beetle = GetComponent <PlayerTransitionRidingBeetle>(); _jump = GetComponent <PlayerJump>(); _attack = GetComponent <PlayerAttack>(); _shoot = GetComponent <PlayerShoot>(); _getting_On_Beetle = GetComponent <PlayerGettingOnBeetle>(); input = InputManager.Instance; }
//Awake private void Awake() { //取得 _rigid = GetComponent <Rigidbody2D>(); _anim = GetComponent <Animator>(); _transition = GetComponent <PlayerTransition>(); _transition_Beetle = GetComponent <PlayerTransitionRidingBeetle>(); _jump = GetComponent <PlayerJump>(); _attack = GetComponent <PlayerAttack>(); _kick = GetComponent <PlayerKick>(); _squat = GetComponent <PlayerSquat>(); _shoot = GetComponent <PlayerShoot>(); _getting_On_Beetle = GetComponent <PlayerGettingOnBeetle>(); input = InputManager.Instance; collection_Manager = CollectionManager.Instance; default_Gravity = _rigid.gravityScale; }
// Use this for initialization void Start() { //取得 player = GameObject.FindWithTag("PlayerTag"); _movie = GetComponent <YukaMovie>(); //初回時 if (SceneManagement.Instance.Is_First_Visit()) { //フェードイン FadeInOut.Instance.Start_Fade_In(new Color(1, 1, 1), 0.008f); //自機をカブトムシに乗せる PlayerGettingOnBeetle player_Ride_Beetle = player.GetComponent <PlayerGettingOnBeetle>(); player_Ride_Beetle.Get_On_Beetle(); } //BGM BGMManager.Instance.Change_BGM("Stage2"); }