示例#1
0
    // Use this for initialization of all variables which need to have values at game start
    void Start()
    {
        //targetHealth = 3;

        //fetching the arena class
        arena       = GameObject.FindGameObjectWithTag("arena");
        arenaScript = arena.GetComponent <Arena2> ();
        Invoke("perk", startTime);
    }
示例#2
0
    public GameServer(int port)
    {
        _server = new TcpListener(IPAddress.Any, port);
        _server.Start();

        _isRunning = true;
        //arena = new Arena();
        arena = new Arena2();
        LoopClients();
    }