/// <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(); }
/// <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; }
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; }