Ejemplo n.º 1
0
 /// <summary>
 /// 取消匹配
 /// </summary>
 public void OnStopMatch()
 {
     SoundManager.Instance.PlaySE(clickAudioClip);
     SingleMatchInteractable = true;
     MultiMatchInteractable  = true;
     //发起请求
     PhotonManager.Instance.Request(OperationCode.PlayerCode, OpPlayer.MatchStop, GameData.Player.ID);
     //关闭匹配面板
     matchView.StopMatch();
 }
Ejemplo n.º 2
0
    /// <summary>
    /// 停止匹配
    /// </summary>
    public void OnStopMatch()
    {
        //播放点击声音
        SoundManager.Instance.PlayEffectMusic(clickClip);
        int id = GameData.Player.id;

        PhotonManager.Instance.Request(OpCode.PlayerCode, OpPlayer.StopMatch, id);

        matchView.StopMatch();
        btnOne.interactable = true;
        btnTwo.interactable = true;
    }
Ejemplo n.º 3
0
    public void onStopMatch()
    {
        //播放声音
        SoundManager.Instance.PlayEffectMusice(acClick);
        //发起请求
        int id = GameData.Player.id;

        PhotonManager.Instance.Request(OpCode.PlayerCode, OpPlayer.StopMatch, id);
        //显示匹配面板
        matchView.StopMatch();
        //禁用按钮
        btnOne.interactable = true;
        btnTwo.interactable = true;
    }