void DirectChange()
 {
     g_player_con_Script      = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerXbox>();
     g_playerDirectXboxScript = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerDirectXbox>();
     //プレイヤーの動きを切り替える
     g_playerDirectXboxScript.enabled = true;
     g_player_con_Script.enabled      = false;
 }
 /// <summary>
 /// プレイヤー内の数値変更
 /// </summary>
 void CameraNum()
 {
     g_player_con_Script      = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerXbox>();
     g_playerDirectXboxScript = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerDirectXbox>();
     //プレイヤーの動きを切り替える
     g_playerDirectXboxScript.enabled = false;
     g_player_con_Script.enabled      = true;
     g_player_con_Script.Change_CameraNum(g_camera_pointer);
 }
Beispiel #3
0
 void Start()
 {
     g_player_Obj              = this.gameObject;
     g_json_Script             = GameObject.Find("Game_Controller").GetComponent <Input_Data>();
     g_game_con_Script         = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     g_play_con_Script         = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_direction_Script        = GameObject.Find("Player_Controller").GetComponent <Player_Direction>();
     g_dice_con_Script         = GameObject.Find("Dice_Controller").GetComponent <Dice_Controller>();
     g_appearance_move_Script  = this.GetComponent <Player_Appearance_Move>();
     g_anim_Script             = this.GetComponent <Player_Animation>();
     g_xbox_Script             = this.GetComponent <PlayerXbox>();
     g_playerDirectXbox_Script = this.GetComponent <PlayerDirectXbox>();
     //配列の最大値を取得
     (g_max_ver, g_max_side, g_max_high) = g_json_Script.Get_Array_Max();
 }
Beispiel #4
0
    void Update()
    {
        if (g_clear_flag == true)
        {
            g_controller_Script          = GameObject.FindWithTag("Player").GetComponent <PlayerXbox>();
            g_controller_Script.enabled  = false;
            g_direct_xbox_Script         = GameObject.FindWithTag("Player").GetComponent <PlayerDirectXbox>();
            g_direct_xbox_Script.enabled = false;
            g_menu_Script.enabled        = false;
            g_camera_move_Script.enabled = false;

            g_clear_UI.SetActive(true);
            g_clear_timer -= Time.deltaTime;
        }
        if (g_clear_timer < 0)
        {
            g_fade_Script.Start_Fade_Out(Move_ResultScene());
        }
    }
Beispiel #5
0
    /// <summary>
    /// 手数をいじる
    /// </summary>
    public void Trouble()
    {
        if (SceneManager.GetActiveScene().name != g_tutoName)
        {
            g_troublenum--;
            g_troublenumtext.text = g_troublenum.ToString();

            if (g_troublenum <= 0)
            {
                Debug.Log("ゲームオーバー");
                g_bgmObj.SetActive(false);
                g_xbox_con_Script            = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerXbox>();
                g_xbox_con_Script.enabled    = false;
                g_direct_xbox_Script         = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerDirectXbox>();
                g_direct_xbox_Script.enabled = false;
                g_menu_Script.enabled        = false;
                g_camera_move_Script.enabled = false;
                g_gameover_UI.SetActive(true);
                return;
            }
        }
    }