void Start() { startMenu = StartingMenu.GetComponent <StartingMenu>(); startMenu.SetOwner(this); bsm = GameLogic.GetComponent <BattleStateMachine>(); bsm.SetClient(this); clientHaveLoggedIn = false; clientIsReadyForStartTheGame = false; //networking stuff address = "127.0.01"; port = 9999; commandsTable = new Dictionary <byte, GameCommand>(); //commandsTable[0] = Join; commandsTable[1] = Welcome; commandsTable[2] = Spawn; //commandsTable[3] = Update; //commandsTable[4] = Ready; commandsTable[5] = GameStart; //commandsTable[6] = UIStart; commandsTable[7] = TurnCreation; //commandsTable[8] = SetTurnParameter; commandsTable[9] = ProcessTurn; commandsTable[10] = EndTurn; commandsTable[254] = StatusServer; //commandsTable[255] = Ack; }