using System.Collections; using System.Collections.Generic; using UnityEngine; using XRTool.Util; public class ItemSenceSmallList : UnitySingleton { public GameObject ItemSence; public void Init(List 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().Init(scenes[i].Id, scenes[i].SceneName, currentScene); } } }