Beispiel #1
0
        public static void ShowAsyn(SelectEquip selectEquip)
        {
            Hashtable hash = new Hashtable();

            hash.Add("SelectEquip", selectEquip);
            GameCore.Instance.UIManager.ShowUI("LogicUI/UIEquipPack", hash);
        }
Beispiel #2
0
 void Start()
 {
     if (Singleton == null)
     {
         Singleton = this;
     }
     ps = plantasDB.FindPlantsUnlocked();
     for (int i = 0; i < ps.Count; i++)
     {
         GameObject g = Instantiate(new GameObject(ps[i].id + ""));
         g.AddComponent <UnityEngine.UI.Image>().sprite = ps[i].target;
         ps[i].myIndex = i;
         g.AddComponent <DragUI>().Init(this, ps[i]);
         g.transform.SetParent(showUnlocks);
         g.transform.localScale = Vector3.one;
     }
 }