private void SetCrateImage() { if (this.m_crate == null || this.m_currentSprite != null) { return; } this.m_currentSprite = LootCrateGraphicSpawner.CreateCrateSmall(this.m_crate.CrateType, this.m_spriteParent, Vector3.zero, Vector3.one, Quaternion.identity); LayerHelper.SetLayer(this.m_currentSprite, base.gameObject.layer, true); }
private void SpawnCrateIcon(LootCrateType type) { GameObject go = LootCrateGraphicSpawner.CreateCrateSilhouette(type, base.transform, Vector3.zero, Vector3.one, Quaternion.identity); LayerHelper.SetLayer(go, base.gameObject.layer, true); GameObject go2 = LootCrateGraphicSpawner.CreateCrateSmall(type, base.transform, Vector3.back * 0.1f, Vector3.one, Quaternion.identity); LayerHelper.SetLayer(go2, base.gameObject.layer, true); this.shine.SetActive(true); }