public SCClient(SCClientCommunicator communicator, bool createServer) { localServer = null; this.communicator = communicator; addCommandBehaviours(); if(createServer){ localServer = new SCServer(this, SCCommunicator.numberOfPlayers); }else{ localServer = null; } mFirstTime = true; }
void Start() { mTable = transform.FindChild("PRTable").GetComponent<SCTable>(); mClient = GameObject.Find("PRClient").GetComponent<SCClientCommunicator>(); currentWindow = WINDOW_NOTHING; currentScreen = SCREEN_MAIN_MENU; }