// 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); }
public GameServer(int port) { _server = new TcpListener(IPAddress.Any, port); _server.Start(); _isRunning = true; //arena = new Arena(); arena = new Arena2(); LoopClients(); }