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.
23 lines
584 B
23 lines
584 B
4 years ago
|
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); //向服务端申请开始计时
|
||
|
}
|
||
|
}
|