示例#1
0
    void ResetServer()
    {
        gr.Reset(true);
        gr.GenerateTerrainSeed();
        state = ServerState.WAITING_TO_START;

        playerIDTracker = 0;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        state = ServerState.OFF;

        gr = GetComponent <GameRunner>();
        gr.Reset(true);
        gr.GenerateTerrainSeed();

        ch = new ServerConnectionHandler(this.HandleIncomingData);

        cl = new ServerConnectionListener(port, 100, ch.AddConnection);
    }