예제 #1
0
    void OnTime(SocketIOEvent socketIOEvent)
    {
        string   data     = socketIOEvent.data.ToString();
        TimeJSON timeJSON = TimeJSON.CreateFromJSON(data);

        Count.timer  = timeJSON.time;
        Count.doOnce = false;
    }
예제 #2
0
    void OnGameRestart(SocketIOEvent socketIOEvent)
    {
        string   data     = socketIOEvent.data.ToString();
        TimeJSON timeJSON = TimeJSON.CreateFromJSON(data);

        Winner.SetActive(false);
        Loser.SetActive(false);
        restart(timeJSON.time);
    }