Exemplo n.º 1
0
    private void OnValidate()
    {
        if (Application.isEditor)
        {
            spriteRenderers = GetComponentsInChildren <SpriteRenderer>();
            SpriteRenderer tmp = GetComponent <SpriteRenderer>();
            if (tmp != null)
            {
                spriteRenderers.Append(tmp);
            }

            childTransforms = GetComponentsInChildren <Transform>();

            if (crossSceneSceneDataSO == null)
            {
#if UNITY_EDITOR
                crossSceneSceneDataSO = AssetManagement.FindAssetByType <CrossSceneSceneDataSO>();
#endif
            }

            if (playerTransformMBDO == null)
            {
                MBDOInitializationHelper mBDOInitializationHelper = default;

                //IMPORTNANT STEP!!!
                mBDOInitializationHelper.SetupCardinalSubSystem(this);
                mBDOInitializationHelper.SetupMBDO(ref playerTransformMBDO);
            }
#if UNITY_EDITOR
            UnityEditor.EditorUtility.SetDirty(this);
#endif
        }
    }
 private void Initialize()
 {
     if (settings == null)
     {
         settings = AssetManagement.OpenOrCreateAsset <SnappingToolSettings>("Assets/Resources/Tools/SnappingTool/SnappingToolSettings.asset");
     }
 }
Exemplo n.º 3
0
 // Token: 0x0600503F RID: 20543 RVA: 0x001B796C File Offset: 0x001B5D6C
 public void SwitchHMD()
 {
     if (this.cameraInstance != null)
     {
         UnityEngine.Object.Destroy(this.cameraInstance);
     }
     this.current        = HMDManager.GetHmdType();
     this.cameraInstance = HMDManager.InstantiateCameraPrefab();
     if (this.cameraInstance != null)
     {
         this.cameraInstance.transform.parent        = base.transform;
         this.cameraInstance.transform.localPosition = Vector3.zero;
         this.cameraInstance.transform.localRotation = Quaternion.identity;
         this.cameraInstance.transform.localScale    = Vector3.one;
         this.vrCamera = this.cameraInstance.GetComponentInChildren <VRCVrCamera>();
         this.vrCamera.SetMode(this.vrCameraMode);
         this.vrCamera.InitializeCameras(this);
         this.vrCamera.SetExclusiveLights(this.exclusiveLights);
         if (this.disableAudio)
         {
             AudioListener componentInChildren = this.cameraInstance.GetComponentInChildren <AudioListener>();
             componentInChildren.enabled = false;
         }
         if (this.hudPrefab != null)
         {
             GameObject gameObject = AssetManagement.Instantiate(this.hudPrefab) as GameObject;
             gameObject.transform.parent        = this.cameraInstance.transform;
             gameObject.transform.localPosition = Vector3.zero;
             gameObject.transform.localRotation = Quaternion.identity;
             gameObject.transform.localScale    = Vector3.one;
         }
     }
 }
Exemplo n.º 4
0
 // Token: 0x06004952 RID: 18770 RVA: 0x00187B5C File Offset: 0x00185F5C
 private void Initialize()
 {
     if (this.guiRenderPlane != null)
     {
         UnityEngine.Object.Destroy(this.guiRenderPlane);
     }
     if (this.useCurvedSurface)
     {
         this.guiRenderPlane = (AssetManagement.Instantiate(Resources.Load("VRGUICurvedSurface")) as GameObject);
     }
     else
     {
         this.guiRenderPlane = (AssetManagement.Instantiate(Resources.Load("VRGUIFlatSurface")) as GameObject);
     }
     this.guiRenderPlane.transform.parent        = base.transform;
     this.guiRenderPlane.transform.localPosition = this.guiPosition;
     this.guiRenderPlane.transform.localRotation = Quaternion.Euler(0f, 180f, 0f);
     this.guiRenderPlane.transform.localScale    = new Vector3(this.guiSize, this.guiSize, this.guiSize);
     this.guiRenderTexture = new RenderTexture(Screen.width, Screen.height, 24);
     this.guiRenderPlane.GetComponent <Renderer>().material.mainTexture = this.guiRenderTexture;
     if (this.customCursor != null)
     {
         this.cursor = this.customCursor;
     }
     else
     {
         this.cursor = (Resources.Load("SimpleCursor") as Texture);
     }
     this.isInitialized = true;
 }
Exemplo n.º 5
0
#pragma warning restore CS0649

    public void OnValidate()
    {
        if (Application.isEditor)
        {
#if UNITY_EDITOR
            IMovable[]   movables1   = GetComponents <IMovable>();
            IUsesInput[] usesInputs1 = GetComponents <IUsesInput>();
            movables.Clear();
            usesInputs.Clear();
            foreach (IMovable movable in movables1)
            {
                movables.Add((MonoBehaviour)movable);
            }
            foreach (IUsesInput usesInput in usesInputs1)
            {
                usesInputs.Add((MonoBehaviour)usesInput);
            }
            if (gameStateSO == null)
            {
                gameStateSO = AssetManagement.FindAssetByType <GameStateSO>();
            }
            UnityEditor.EditorUtility.SetDirty(this);
#endif
        }
    }
Exemplo n.º 6
0
    private void Reset()
    {
        if (Application.isEditor)
        {
            if (crossSceneSceneDataSO == null)
            {
#if UNITY_EDITOR
                crossSceneSceneDataSO = AssetManagement.FindAssetByType <CrossSceneSceneDataSO>();

                UnityEditor.EditorUtility.SetDirty(this);
#endif
            }
            if (playerTransformMBDO == null)
            {
                MBDOInitializationHelper mBDOInitializationHelper = default;

                //IMPORTNANT STEP!!!
                mBDOInitializationHelper.SetupCardinalSubSystem(this);
                mBDOInitializationHelper.SetupMBDO(ref playerTransformMBDO);
#if UNITY_EDITOR
                UnityEditor.EditorUtility.SetDirty(this);
#endif
            }
        }
    }
Exemplo n.º 7
0
        public override void OnBegin()
        {
            assetManagement   = null;
            assetInfoManifest = null;

            changeAssetInfo = false;

            var projectFolders = ProjectFolders.Instance;

            if (projectFolders != null)
            {
                assetManagement = AssetManagement.Instance;

                externalResourcesPath = projectFolders.ExternalResourcesPath;

                assetManagement.Initialize();

                var manifestPath = PathUtility.Combine(externalResourcesPath, AssetInfoManifest.ManifestFileName);

                assetInfoManifest = AssetDatabase.LoadAssetAtPath <AssetInfoManifest>(manifestPath);

                if (assetInfoManifest != null)
                {
                    assetInfos = Reflection.GetPrivateField <AssetInfoManifest, AssetInfo[]>(assetInfoManifest, "assetInfos");
                }
            }
        }
Exemplo n.º 8
0
 // Token: 0x0600503A RID: 20538 RVA: 0x001B76B8 File Offset: 0x001B5AB8
 private void BuildWall()
 {
     for (int i = 0; i < this.avatars.Length; i++)
     {
         GameObject gameObject = AssetManagement.Instantiate(this.pedestalGO, base.transform.position, base.transform.rotation) as GameObject;
         gameObject.transform.parent = base.transform;
         Vector3 localPosition = gameObject.transform.localPosition;
         if (this.spawnRightToLeft)
         {
             localPosition.x = (float)(-(float)i % this.numColumns) * this.avatarMargin.x;
         }
         else
         {
             localPosition.x = (float)(i % this.numColumns) * this.avatarMargin.x;
         }
         localPosition.y = (float)(i / this.numColumns) * this.avatarMargin.y;
         gameObject.transform.localPosition = localPosition;
         VRC_AvatarPedestal component = gameObject.GetComponent <VRC_AvatarPedestal>();
         component.transform.Rotate(new Vector3(0f, 180f, 0f));
         component.scale = this.scale;
         GameObject gameObject2 = gameObject.transform.Find("UseVolume").gameObject;
         gameObject2.AddComponent <Highlightable>();
         CapsuleCollider component2 = gameObject2.GetComponent <CapsuleCollider>();
         component2.height *= this.scale * 1.3f;
         component2.radius *= this.scale * 1.3f;
         Vector3 center = new Vector3(component2.center.x, 0.7f, component2.center.z);
         component2.center = center;
     }
 }
Exemplo n.º 9
0
    // Token: 0x0600569F RID: 22175 RVA: 0x001DCD54 File Offset: 0x001DB154
    private void Start()
    {
        VRCTrackingManager.instance = this;
        GameObject asset = this.TestTracking;

        if (this.ForceTestTracking)
        {
            asset = this.TestTracking;
        }
        else
        {
            asset = this.SteamVrTracking;
        }
        GameObject gameObject = AssetManagement.Instantiate(asset) as GameObject;

        this.activeTrackers.Add(gameObject.GetComponent <VRCTracking>());
        gameObject.transform.SetParent(base.transform);
        GameObject gameObject2 = AssetManagement.Instantiate(this.HandProxyTracking) as GameObject;

        this.activeTrackers.Add(gameObject2.GetComponent <VRCTracking>());
        gameObject2.transform.SetParent(base.transform);
        VRCTrackingManager.playerEyeHeight  = VRCTracking.DefaultEyeHeight;
        VRCTrackingManager.playerArmLength  = VRCTracking.DefaultArmLength;
        VRCTrackingManager._avatarViewPoint = new Vector3(0f, VRCTrackingManager.playerEyeHeight, 0f);
    }
Exemplo n.º 10
0
        // Token: 0x060054DA RID: 21722 RVA: 0x001D435C File Offset: 0x001D275C
        public GameObject Spawn(Vector3 pos, Quaternion rot)
        {
            GameObject gameObject;

            if (this.inactive.Count == 0)
            {
                gameObject      = (GameObject)AssetManagement.Instantiate(this.prefab, pos, rot);
                gameObject.name = string.Concat(new object[]
                {
                    this.prefab.name,
                    " (",
                    this.nextId++,
                    ")"
                });
                gameObject.AddComponent <SimplePool.PoolMember>().myPool = this;
            }
            else
            {
                gameObject = this.inactive.Pop();
                if (gameObject == null)
                {
                    return(this.Spawn(pos, rot));
                }
            }
            gameObject.transform.position = pos;
            gameObject.transform.rotation = rot;
            gameObject.SetActive(true);
            return(gameObject);
        }
Exemplo n.º 11
0
 // Token: 0x060054CE RID: 21710 RVA: 0x001D3F10 File Offset: 0x001D2310
 private void InstantiateAvatar(string url, UnityEngine.Object asset)
 {
     if (this.avatar != null)
     {
         UnityEngine.Object.Destroy(this.avatar);
     }
     this.avatar = (AssetManagement.Instantiate(asset) as GameObject);
     Tools.SetLayerRecursively(this.avatar, base.gameObject.layer, -1);
     this.SetupAnimator(this.avatar);
     Camera[] componentsInChildren = this.avatar.GetComponentsInChildren <Camera>();
     foreach (Camera camera in componentsInChildren)
     {
         camera.enabled = false;
     }
     AudioListener[] componentsInChildren2 = this.avatar.GetComponentsInChildren <AudioListener>();
     foreach (AudioListener audioListener in componentsInChildren2)
     {
         audioListener.enabled = false;
     }
     Cloth[] componentsInChildren3 = this.avatar.GetComponentsInChildren <Cloth>();
     foreach (Cloth cloth in componentsInChildren3)
     {
         cloth.enabled = false;
     }
     if (this.onAvatarInstantiated != null)
     {
         this.onAvatarInstantiated(url, this.avatar);
     }
 }
Exemplo n.º 12
0
    // Token: 0x06005900 RID: 22784 RVA: 0x001EDA00 File Offset: 0x001EBE00
    private ObjectInstantiator.PrefabInfo _AddPrefab(string path, GameObject prefab)
    {
        GameObject gameObject = AssetManagement.Instantiate <GameObject>(prefab);

        if (gameObject == null)
        {
            Debug.LogError("Could not instantiate prefab " + path, base.gameObject);
            return(null);
        }
        int viewCount = VRC.Network.CountSubIDs(gameObject, true);
        int idCount   = (from c in VRC.Network.GetAllComponents <Component>(gameObject, true)
                         where c is INetworkID
                         select c).Count <Component>();

        UnityEngine.Object.Destroy(gameObject);
        prefab.SetActive(false);
        ObjectInstantiator.PrefabInfo prefabInfo = new ObjectInstantiator.PrefabInfo
        {
            obj       = prefab,
            name      = path,
            viewCount = viewCount,
            idCount   = idCount
        };
        this.prefabCache.Add(path, prefabInfo);
        return(prefabInfo);
    }
Exemplo n.º 13
0
        /// <summary>
        /// This is just a temporary place to put this code here as I test on MainActivity
        /// </summary>
        public void TemporaryHolder()
        {
            //TODO: Stop using anonymous delegates, this is not javascipt :P
            //TODO: Find a pattern to distribute all these events in an orderly way!
            var button = FindViewById <Button> (Resource.Id.AzureCall);

            button.Click += (sender, args) =>
            {
                var input        = Assets.Open("Azure.publishsettings");
                var xdoc         = XDocument.Load(input);
                var subscription = xdoc.Descendants("Subscription").Single();
                var id           = subscription.Attribute("Id").Value;

                AssetManagement.GetCertificate(xdoc);
                var services = AzureHelper.GetStorageAccounts(id);

                //var servicesAsStrings = services.StorageService.Select (l => l.ServiceName).ToList();

                var storageList = FindViewById <ListView> (Resource.Id.StorageAccountList);
                storageList.Adapter = new StorageServiceListAdapter(this, services);

                storageList.ItemClick += (listSender, e) =>
                {
                    var list = listSender as ListView;
                    var item = services.StorageService [e.Position];

                    //var storageAccount = AzureHelper.GetStorageAccountKeys (id, item.ServiceName) as StorageKeys.StorageService;
                    //Toast.MakeText (this, storageAccount.StorageServiceKeys.Primary, ToastLength.Short).Show ();
                };
            };
        }
Exemplo n.º 14
0
    // Token: 0x06006026 RID: 24614 RVA: 0x0021D488 File Offset: 0x0021B888
    public TableViewCell GetCellForRowInTableView(TableView tableView, int row)
    {
        ItemGroupTableViewCell itemGroupTableViewCell = tableView.GetReusableCell(this.cellPrefab.reuseIdentifier) as ItemGroupTableViewCell;

        if (itemGroupTableViewCell == null)
        {
            itemGroupTableViewCell = (ItemGroupTableViewCell)AssetManagement.Instantiate(this.cellPrefab);
            UnityEngine.Object gameObject = itemGroupTableViewCell.gameObject;
            string             str        = "ItemGroupTableViewCell_";
            int num = ++this.mNumInstancesCreated;
            gameObject.name = str + num.ToString();
            itemGroupTableViewCell.transform.localRotation = Quaternion.identity;
        }
        List <IUIGroupItemDatasource> list = new List <IUIGroupItemDatasource>();

        for (int i = 0; i < this.lcdItemsPerRow; i++)
        {
            int num2 = row * this.lcdItemsPerRow + i;
            if (num2 >= this.searchedItemsSubset.Count)
            {
                break;
            }
            list.Add(this.searchedItemsSubset[num2]);
        }
        itemGroupTableViewCell.Setup(list, this.itemsPerRow, this.uiGroupItemPrefab, this.onItemSelected);
        return(itemGroupTableViewCell);
    }
        public ActionResult DeleteConfirmed(int id)
        {
            AssetManagement assetManagement = db.AssetManagements.Find(id);

            db.AssetManagements.Remove(assetManagement);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 16
0
    // Token: 0x060053DF RID: 21471 RVA: 0x001CF264 File Offset: 0x001CD664
    private void GenerateBulletHitEffect(Vector3 pos, Vector3 dir, Vector3 normal)
    {
        Vector3    toDirection = Vector3.Reflect(dir, normal);
        Quaternion rot         = Quaternion.FromToRotation(Vector3.forward, toDirection);
        GameObject obj         = (GameObject)AssetManagement.Instantiate(this.gunStats.hitEffects[0], pos, rot);

        UnityEngine.Object.Destroy(obj, 2f);
    }
Exemplo n.º 17
0
    public void Save(string filename, Type nodeEditorType, bool autosave)
    {
        if (!autosave)
        {
            this.filename = filename;
        }
        this.nodeEditorType = nodeEditorType.ToString();

        AssetManagement.CreateOrOverwriteAsset(filename, this, autosave);
    }
Exemplo n.º 18
0
    // Token: 0x06004CE8 RID: 19688 RVA: 0x0019C064 File Offset: 0x0019A464
    public static void PlayerJoined(string PlayerID)
    {
        GameObject      gameObject      = (GameObject)AssetManagement.Instantiate(Resources.Load("USpeakerPrefab"));
        USpeakOwnerInfo uspeakOwnerInfo = gameObject.AddComponent <USpeakOwnerInfo>();

        uspeakOwnerInfo.Init(new USpeakPlayer
        {
            PlayerID = PlayerID
        });
    }
Exemplo n.º 19
0
        protected override void Initialize()
        {
            _gameManagement      = new GameManagement();
            _gameManagement.Game = this;
            _gameManagement.Start();

            _assetManagement = new AssetManagement();

            // TODO: Add your initialization logic here
            base.Initialize();
        }
Exemplo n.º 20
0
        public override void OnBegin()
        {
            assetManagement = null;

            var projectFolders = ProjectFolders.Instance;

            if (projectFolders != null)
            {
                assetManagement = AssetManagement.Instance;
                assetManagement.Initialize();
            }
        }
 public ActionResult Edit([Bind(Include = "ID,EmployeeID,AssetID,modelNumber")] AssetManagement assetManagement)
 {
     if (ModelState.IsValid)
     {
         db.Entry(assetManagement).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.AssetID    = new SelectList(db.Assets, "ID", "AssetName", assetManagement.AssetID);
     ViewBag.EmployeeID = new SelectList(db.Employees, "ID", "EmployeeName", assetManagement.EmployeeID);
     return(View(assetManagement));
 }
Exemplo n.º 22
0
    // Token: 0x060053F6 RID: 21494 RVA: 0x001CFC08 File Offset: 0x001CE008
    public void SetProperties(List <VRCPlayerModProperty> properties)
    {
        Dictionary <string, object> dictionary = new Dictionary <string, object>();

        foreach (VRCPlayerModProperty vrcplayerModProperty in properties)
        {
            dictionary[vrcplayerModProperty.name] = vrcplayerModProperty.value();
        }
        this.propPrefab     = (GameObject)Tools.GetOrDefaultFromDictionary(dictionary, "PropPrefab", null);
        this.propAnimations = (RuntimeAnimatorController)Tools.GetOrDefaultFromDictionary(dictionary, "PropAnimations", null);
        VRC_AvatarDescriptor componentInChildren = base.GetComponentInChildren <VRC_AvatarDescriptor>();

        if (componentInChildren == null)
        {
            return;
        }
        this._avatar = componentInChildren.gameObject;
        Animator component = this._avatar.GetComponent <Animator>();

        if (component.isHuman)
        {
            if (this._animator == null)
            {
                this._animator = component;
                if (this.propAnimations != null)
                {
                    this._animControllerManager.Push(this.propAnimations);
                }
            }
            else if (this._animator != component)
            {
                this._animator = component;
            }
            if (this.propPrefab != null)
            {
                this.propInstance = (GameObject)AssetManagement.Instantiate(this.propPrefab);
                this.propApi      = this.propInstance.GetComponent <VRC_PropApi>();
                this.propControls = this.propInstance.GetComponent <VRC_PropController>();
                if (this.propControls != null)
                {
                    this.propControls.controllingPlayer = base.GetComponent <VRC_PlayerApi>();
                }
                HumanBodyBones humanBodyBones = this.propApi.mountPoint;
                this.mountPoint = this._animator.GetBoneTransform(humanBodyBones);
                Quaternion tposeRotation = this._animationController.GetTPoseRotation(humanBodyBones);
                Quaternion localRotation = Quaternion.Inverse(tposeRotation) * this.propInstance.transform.rotation;
                this.propInstance.transform.parent        = this.mountPoint;
                this.propInstance.transform.localPosition = Vector3.zero;
                this.propInstance.transform.localRotation = localRotation;
            }
        }
    }
Exemplo n.º 23
0
#pragma warning restore CS0649 // varriable is never assigned to and will always have it's default value
    public virtual void OnValidate()
    {
        if (Application.isEditor)
        {
            if (musicMessageEventSO == null)
            {
#if UNITY_EDITOR
                musicMessageEventSO = AssetManagement.FindAssetByType <MusicMessageEventSO>();
                UnityEditor.EditorUtility.SetDirty(this);
#endif
            }
        }
    }
Exemplo n.º 24
0
    public void GetParentDirectoryShouldReturnCorrectResults()
    {
        string input = "a/b/c/d/e";

        string[] expected = new string[] { "a", "a/b", "a/b/c", "a/b/c/d", "a/b/c/d/e" };
        string[] actual   = AssetManagement.GetAllParentFolderPaths(input);

        Assert.True(
            expected.SequenceEqual(actual),
            $"TestFailed {nameof(GetParentDirectoryShouldReturnCorrectResults)}\n" +
            $"Expected {{{string.Join(", ", expected)}}}" +
            $"\nActual {{{string.Join(", ", actual)}}}");
    }
Exemplo n.º 25
0
#pragma warning restore CS0649
    private void OnValidate()
    {
        if (Application.isEditor)
        {
#if UNITY_EDITOR
            if (gameStateSO == null)
            {
                gameStateSO = AssetManagement.FindAssetByType <GameStateSO>();
            }
            UnityEditor.EditorUtility.SetDirty(this);
#endif
        }
    }
Exemplo n.º 26
0
 // Token: 0x060044BB RID: 17595 RVA: 0x0016FE5C File Offset: 0x0016E25C
 public static void Switch(string _sceneName)
 {
     for (int i = 0; i < SU_SpaceSceneSwitcher.staticSpaceScenes.Count; i++)
     {
         GameObject gameObject = SU_SpaceSceneSwitcher.staticSpaceScenes[i];
         if (gameObject != null && gameObject.name == _sceneName)
         {
             if (SU_SpaceSceneSwitcher.staticMode != SU_SpaceSceneSwitcher.Mode.LOAD_ALL_AT_STARTUP)
             {
                 UnityEngine.Object.Destroy(SU_SpaceSceneSwitcher.currentSpaceScene);
                 SU_SpaceSceneSwitcher.currentSpaceScene = (GameObject)AssetManagement.Instantiate(gameObject, new Vector3(0f, 0f, 0f), new Quaternion(0f, 0f, 0f, 0f));
                 return;
             }
             if (SU_SpaceSceneSwitcher.hSpaceScenes[_sceneName] != null)
             {
                 bool flag = false;
                 IDictionaryEnumerator enumerator = SU_SpaceSceneSwitcher.hSpaceScenes.GetEnumerator();
                 try
                 {
                     while (enumerator.MoveNext())
                     {
                         object          obj             = enumerator.Current;
                         DictionaryEntry dictionaryEntry = (DictionaryEntry)obj;
                         if (dictionaryEntry.Key.ToString() == _sceneName)
                         {
                             SU_SpaceSceneSwitcher.SetActive((GameObject)dictionaryEntry.Value, true);
                             flag = true;
                         }
                         else
                         {
                             SU_SpaceSceneSwitcher.SetActive((GameObject)dictionaryEntry.Value, false);
                         }
                     }
                 }
                 finally
                 {
                     IDisposable disposable;
                     if ((disposable = (enumerator as IDisposable)) != null)
                     {
                         disposable.Dispose();
                     }
                 }
                 if (flag)
                 {
                     return;
                 }
             }
         }
     }
     Debug.LogWarning("Tried to switch to a space scene named " + _sceneName + " but the scene was not found. Ensure that you configured the array on the SpaceSceneSwitcher prefab correctly and that you typed the name of the space scene prefab correctly (case sensitive) for the Switch function call");
 }
        // GET: AssetManagements/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AssetManagement assetManagement = db.AssetManagements.Find(id);

            if (assetManagement == null)
            {
                return(HttpNotFound());
            }
            return(View(assetManagement));
        }
Exemplo n.º 28
0
    /// <summary>
    /// Warning!!! SLOW AF!!!  EDITOR ONLY!!!
    /// </summary>
    /// <returns></returns>
    static List <Item> GetAllItemPrefabsInProjectFolder()
    {
        //List<Item>;
        List <Item> items = AssetManagement.FindAssetsByComponent <Item>();

        Debug.Log("Items: " + items.Count);
        List <Item> itemList = new List <Item>();

        foreach (Item item in items)
        {
            itemList.Add(item);
        }
        return(itemList);
    }
Exemplo n.º 29
0
    // Token: 0x060062C2 RID: 25282 RVA: 0x00230788 File Offset: 0x0022EB88
    private void Awake()
    {
        GameObject x = GameObject.Find("_Application");

        if (x == null)
        {
            base.gameObject.SetActive(false);
            AssetManagement.LoadLevel("Application2");
        }
        else
        {
            VRCUiManager._instance = this;
        }
    }
Exemplo n.º 30
0
    // Token: 0x0600611D RID: 24861 RVA: 0x00224224 File Offset: 0x00222624
    public TableViewCell GetCellForRowInTableView(TableView tableView, int row)
    {
        RoomTableViewCell roomTableViewCell = tableView.GetReusableCell(this.roomTableViewCellPrefab.reuseIdentifier) as RoomTableViewCell;

        if (roomTableViewCell == null)
        {
            roomTableViewCell = (RoomTableViewCell)AssetManagement.Instantiate(this.roomTableViewCellPrefab);
            UnityEngine.Object gameObject = roomTableViewCell.gameObject;
            string             str        = "RoomTableViewCellInstance_";
            int num = ++this.mNumInstancesCreated;
            gameObject.name = str + num.ToString();
        }
        roomTableViewCell.RefreshCell(this.worlds[row]);
        return(roomTableViewCell);
    }