贵港路建设路地下商业街网上演练
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
584 B

using AX.NetworkSystem;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StartTimer : MonoBehaviour {
// Use this for initialization
void Start () {
GetComponent<ButtonRecordByAC>().OutInterFaceButton += StartTimeSync;
}
// Update is called once per frame
void Update () {
}
void StartTimeSync()
{
KeyValuePair<long, bool> pair = new KeyValuePair<long, bool>(CurrentUserInfo.room.Id, true);
NetworkManager.Default.SendAsync("TIMER_ENABLE_SYNC", pair); //向服务端申请开始计时
}
}