예제 #1
0
    void Update()
    {
        status.players  = clientList.Count;
        textStatus.text = status.getText();

        if (currentState == GameState.Finish)
        {
            if (rankingSendTime > 0)
            {
                if (pointList.Count == clientList.Count)
                {
                    sendRanking();
                    rankingSendTime = -1000;
                }
                else
                {
                    rankingSendTime -= Time.deltaTime;
                }
            }
            else if (-100 < rankingSendTime && rankingSendTime < 0)
            {
                sendRanking();
                rankingSendTime = -1000;
            }
        }
    }