// Called when the app is started void InitApp() { Audio.Init(); Views.Init(); Manager.Init(); Multiplayer.Init(); }
public void Init() { Singleplayer = Utility.GetDependancy <SingleplayerMode>(); Versus = Utility.GetDependancy <VersusMode>(); Multiplayer = Utility.GetDependancy <MultiplayerMode>(); Singleplayer.Init(); Versus.Init(); Multiplayer.Init(); }
/// <summary> /// Called when the game begins (considered to be when a player hosts or joins a game) /// </summary> public void StartGame() { Views.Init(); Manager.Init(); Decks.Init(); Score.Init(); Controller.Init(); Test.Init(); Multiplayer.Init(); Multiplayer.onDisconnected += OnDisconnect; Multiplayer.onUpdateDroppedClients += OnUpdateDroppedClients; Multiplayer.onSocketDisconnected += OnSocketDisconnected; }