Example #1
0
        private bool InitManager()
        {
            GameObject go = Resources.Load <GameObject>(Path);

            if (go != null)
            {
                _resource = go.GetComponent <ZResource>();
            }
            else
            {
                Debug.LogError(Path + " not found!");
            }

            return(_resource != null);
        }
 public BF3ServerBrowserViewModel(
     IZApi api,
     IEventService eventService,
     IGameService gameService,
     IDiscord discord,
     App application,
     IPageNavigator navigator,
     ISettingsService settingsService,
     IDialogService dialogService)
     : base(api, gameService, eventService, discord, application, settingsService, navigator, dialogService)
 {
     MapNames = new [] { "All" }
     .Concat(ZResource.GetBF3MapNames())
     .ToArray();
     GameModeNames = new [] { "All" }
     .Concat(ZResource.GetBF3GameModeNames())
     .ToArray();
 }