예제 #1
0
    public void Player_Sence_Check()
    {
        // player.before_check_sence = Player.Character_Sence.NEXT_GAMETITLE;
        // 結合時に以下の処理に変更
        // player.before_check_sence = player.brfore_getSence();

        // 前回のシーンを格納
        player.before_check_sence = player.brfore_getSence();

        // 結合時に削除

        /*
         * if (player.before_check_sence == null)
         * {
         *  player.before_check_sence = Player.Character_Sence.OPENING_MOVIE;
         * }
         */

        // 以前のシーンを確認
        if (player.before_check_sence == Title_Player.Character_Sence.OPENING_MOVIE)
        {
            player.setSence(Title_Player.Character_Sence.NEXT_GAMESTART);
        }
        else if (player.before_check_sence == Title_Player.Character_Sence.GAME_STAGESELECT)
        {
            player.setSence(Title_Player.Character_Sence.NEXT_GAMETITLE);
        }
        else
        {
            player.setSence(Title_Player.Character_Sence.NEXT_GAMETITLE);
            //player.setSence(Title_Player.Character_Sence.PUSH_GAME_START);
        }
    }
    public void GameSelect_Input(Title_Player player)
    {
        switch (player.input)
        {
        case Title_Player.Player_Input.UP:
        {
            if (Input.GetButtonDown("Down_Input"))
            {
                player.setInput(Title_Player.Player_Input.DOWN);
            }
            if (Input.GetButtonDown("Decision"))
            {
                player.setSence(Title_Player.Character_Sence.GAME_START);
            }
            break;
        }

        /*
         * case Player.Player_Input.CENTER:
         * {
         *  if(Input.GetButtonDown("Up_Input"))
         *  {
         *      player.setInput(Player.Player_Input.UP);
         *  }
         *  if(Input.GetButtonDown("Down_Input"))
         *  {
         *      player.setInput(Player.Player_Input.DOWN);
         *  }
         *  if (Input.GetButtonDown("Decision"))
         *  {
         *      player.setSence(Player.Character_Sence.GAME_DATADELETE_CHECK);
         *      player.setInput(Player.Player_Input.UP);
         *  }
         *  break;
         * }
         */
        case Title_Player.Player_Input.DOWN:
        {
            if (Input.GetButtonDown("Up_Input"))
            {
                player.setInput(Title_Player.Player_Input.UP);
            }
            if (Input.GetButtonDown("Decision"))
            {
                player.setSence(Title_Player.Character_Sence.GAME_END_CHECK);
                player.setInput(Title_Player.Player_Input.UP);
            }
            break;
        }
        }
        if (Input.GetButtonDown("Cancel"))
        {
            player.setSence(Title_Player.Character_Sence.PUSH_GAME_START);
        }
    }
 public void PushGameStart_Input(Title_Player player)
 {
     if (Input.GetButtonDown("Decision"))
     {
         player.setSence(Title_Player.Character_Sence.GAME_SELECT);
     }
 }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     player_Draw = GameObject.Find("Canvas");
     player      = player_Draw.GetComponent <Title_Player>();
     player.setSence(Title_Player.Character_Sence.PUSH_GAME_START);
     player.setInput(Title_Player.Player_Input.UP);
     audioSource = GetComponent <AudioSource>();
 }
    /*
     * public void GameDatadeleteCheck_Input(Player player)
     * {
     *  switch (player.input)
     *  {
     *      case Player.Player_Input.UP:
     *      {
     *          if(Input.GetButtonDown("Down_Input"))
     *          {
     *              player.setInput(Player.Player_Input.DOWN);
     *          }
     *          if (Input.GetButtonDown("Decision"))
     *          {
     *              player.set_Data_Complete_TrueFlg();
     *              player.setSence(Player.Character_Sence.GAME_SELECT);
     *          }
     *          break;
     *      }
     *      case Player.Player_Input.DOWN:
     *      {
     *          if(Input.GetButtonDown("Up_Input"))
     *          {
     *              player.setInput(Player.Player_Input.UP);
     *          }
     *          if (Input.GetButtonDown("Decision"))
     *          {
     *              player.setSence(Player.Character_Sence.GAME_SELECT);
     *              player.setInput(Player.Player_Input.CENTER);
     *          }
     *          break;
     *      }
     *  }
     *  if (Input.GetButtonDown("Cancel"))
     *  {
     *      player.setSence(Player.Character_Sence.GAME_SELECT);
     *      player.setInput(Player.Player_Input.CENTER);
     *  }
     * }
     */

    public void GameEndCheck_Input(Title_Player player)
    {
        switch (player.input)
        {
        case Title_Player.Player_Input.UP:
        {
            if (Input.GetButtonDown("Down_Input"))
            {
                player.setInput(Title_Player.Player_Input.DOWN);
            }
            if (Input.GetButtonDown("Decision"))
            {
                player.setSence(Title_Player.Character_Sence.GAME_END);
            }
            break;
        }

        case Title_Player.Player_Input.DOWN:
        {
            if (Input.GetButtonDown("Up_Input"))
            {
                player.setInput(Title_Player.Player_Input.UP);
            }
            if (Input.GetButtonDown("Decision"))
            {
                player.setSence(Title_Player.Character_Sence.GAME_SELECT);
            }
            break;
        }
        }
        if (Input.GetButtonDown("Cancel"))
        {
            player.setSence(Title_Player.Character_Sence.GAME_SELECT);
            player.setInput(Title_Player.Player_Input.DOWN);
        }
    }