1234567891011121314151617181920 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using XRTool.Util;
- public class ItemSenceSmallList : UnitySingleton<ItemSenceSmallList>
- {
- public GameObject ItemSence;
- public void Init(List<SceneConfig> scenes, SceneConfig currentScene)
- {
- for (int i = 0; i < scenes.Count; i++)
- {
- GameObject obj = Instantiate(ItemSence, transform) as GameObject;
- int Index = obj.transform.GetSiblingIndex();
- obj.transform.GetComponent<ItemSenceView>().Init(scenes[i].Id, scenes[i].SceneName, currentScene);
- }
- }
- }
|