Example #1
0
 // Token: 0x060015EF RID: 5615 RVA: 0x000690FC File Offset: 0x000672FC
 private void Awake()
 {
     if (SceneInfo.instance)
     {
         for (int i = 0; i < this.stageSkinVariants.Length; i++)
         {
             StageSkinVariantController.StageSkinVariant stageSkinVariant = this.stageSkinVariants[i];
             if (SceneInfo.instance.sceneDef.nameToken == stageSkinVariant.stageNameToken)
             {
                 for (int j = 0; j < stageSkinVariant.childObjects.Length; j++)
                 {
                     stageSkinVariant.childObjects[j].SetActive(true);
                 }
                 if (stageSkinVariant.replacementRenderInfos.Length != 0)
                 {
                     this.characterModel.rendererInfos = stageSkinVariant.replacementRenderInfos;
                 }
             }
             else
             {
                 for (int k = 0; k < stageSkinVariant.childObjects.Length; k++)
                 {
                     stageSkinVariant.childObjects[k].SetActive(false);
                 }
             }
         }
     }
 }
 // Token: 0x060013E5 RID: 5093 RVA: 0x00055028 File Offset: 0x00053228
 private void Awake()
 {
     if (SceneInfo.instance)
     {
         for (int i = 0; i < this.stageSkinVariants.Length; i++)
         {
             StageSkinVariantController.StageSkinVariant stageSkinVariant = this.stageSkinVariants[i];
             for (int j = 0; j < stageSkinVariant.childObjects.Length; j++)
             {
                 stageSkinVariant.childObjects[j].SetActive(false);
             }
         }
         int k = 0;
         while (k < this.stageSkinVariants.Length)
         {
             StageSkinVariantController.StageSkinVariant stageSkinVariant2 = this.stageSkinVariants[k];
             if (SceneInfo.instance.sceneDef.nameToken == stageSkinVariant2.stageNameToken)
             {
                 for (int l = 0; l < stageSkinVariant2.childObjects.Length; l++)
                 {
                     stageSkinVariant2.childObjects[l].SetActive(true);
                 }
                 if (stageSkinVariant2.replacementRenderInfos.Length != 0)
                 {
                     this.characterModel.baseRendererInfos = stageSkinVariant2.replacementRenderInfos;
                     return;
                 }
                 break;
             }
             else
             {
                 k++;
             }
         }
     }
 }