public GameLevel(LevelDef _def) { characterSpawners = new CharacterSpawners(_def.characterSpawners); Global.Server().postConnected += ListenConnectedToServer; Global.Server().postDisconnected += ListenDisconnectedFromServer; }
public GameLevel(GameLevelDef _def) { characterSpawners = new CharacterSpawners(_def.characterSpawners); characterSpawners.postSpawn += ListenCharacterSpawned; characterSpawners.postDestroy += ListenCharacterDestroyed; Global.Server().postConnected += ListenConnectedToServer; Global.Server().postDisconnected += ListenDisconnectedFromServer; }