/********************************************************************************************/ /** Bridge Functions ************************************************************************/ /********************************************************************************************/ private void addToUpdater(SCGameInfo game) { game.reset(); communicator.updater.Add(game.update); }
/********************************************************************************************/ /** Util Functions **************************************************************************/ /********************************************************************************************/ private void forget(SCGameInfo game) { Debug.Log("SCBrain| Forgot game created by user: " + game.createdByUser); communicator.disconnectFrom(game.createdByConnectionId); logic.freeUniqueId(game.createdByUniqueId); removeFromUpdater(game); games.Remove(game); }
private void removeFromUpdater(SCGameInfo game) { communicator.updater.Remove(game.update); }