Ejemplo n.º 1
0
    void OnPlayerConnected(NetworkPlayer player)
    {
        clientCount++;
        if (Application.loadedLevel == (int)GameLeve.Movie)
        {
            int lenVal   = Network.connections.Length;
            int indexVal = lenVal - 1;
            NetCtrl.OnPlayerConnectedServer(player, indexVal);

            string ipInfo = Network.connections[indexVal].ipAddress;
            NetCtrl.GetInstance().SendPlayerIndexNameInfo(ipInfo, indexVal);
        }
        //ScreenLog.Log("NetworkServerNet::OnPlayerConnected -> init, clientCount " + clientCount);
    }