Exemplo n.º 1
0
 // Called when the app is started
 void InitApp()
 {
     Audio.Init();
     Views.Init();
     Manager.Init();
     Multiplayer.Init();
 }
Exemplo n.º 2
0
        public void Init()
        {
            Singleplayer = Utility.GetDependancy <SingleplayerMode>();
            Versus       = Utility.GetDependancy <VersusMode>();
            Multiplayer  = Utility.GetDependancy <MultiplayerMode>();

            Singleplayer.Init();
            Versus.Init();
            Multiplayer.Init();
        }
Exemplo n.º 3
0
 /// <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;
 }