Esempio n. 1
0
 public override void Execute()
 {
     if (!session_name.IsNullOrEmpty())
     {
         SessionInfoPanel.DrawPanel(this);
         PlayerPrefsWrapper.Set(StrPrefs.session_name, session_name);
         SessionBehaviour.SetSessionName(session_name);
     }
     if (players_uid != null)
     {
         PlayersScrollList.DrawScrollList(players_uid);
         SessionBehaviour.SetPlayers(players_uid);
     }
     if (!state.IsNullOrEmpty())
     {
         PlayerPrefsWrapper.Set(StrPrefs.state, state);
         SessionBehaviour.SetState(state);
     }
     if (game != null)
     {
         game.Execute();
     }
 }
 public override void Execute()
 {
     if (factory != null)
     {
         GameBehaviour.SetFactory(factory);
     }
     if (rule != null)
     {
         GameBehaviour.SetRule(rule);
     }
     if (units != null)
     {
         GameBehaviour.Frame(units);
     }
     if (players != null)
     {
         PlayersScrollList.DrawScrollList(players);
     }
     if (tilemap != null)
     {
         TilemapBehaviour.DrawTilemap(tilemap);
     }
     // TODO
 }