65 lines
1.2 KiB
C#
65 lines
1.2 KiB
C#
using Cysharp.Threading.Tasks.Triggers;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using XFrame.Core.Utils;
|
|
|
|
public class DragManager : MonoSingleton<DragManager>
|
|
{
|
|
public List<GameObject> deviceimages = new List<GameObject>();
|
|
public List<string> modellist=new List<string>();
|
|
|
|
public Dictionary<string, int> model = new Dictionary<string, int>();
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
//public void AddModeData(string str, GameObject gameObject)
|
|
//{
|
|
// GameObject obj = null;
|
|
// if (model.TryGetValue(str, out obj))
|
|
// return;
|
|
|
|
// model.Add(str, gameObject);
|
|
//}
|
|
public void AddObj(GameObject obj)
|
|
{
|
|
deviceimages.Add(obj);
|
|
}
|
|
public void Addtext(string name)
|
|
{
|
|
modellist.Add(name);
|
|
}
|
|
|
|
}
|
|
//public class DragManager : MonoSingleton<DragManager>
|
|
//{
|
|
// public Deviceimage prefab;
|
|
|
|
// start()
|
|
// {
|
|
// for deviceimages
|
|
// Deviceimage d = instance (prefab)
|
|
// d.setvalue(Set, De, deviceimages[i].name ,)
|
|
// }
|
|
|
|
// public void Set()
|
|
// {
|
|
|
|
// }
|
|
|
|
// public void De()
|
|
// {
|
|
|
|
|
|
// }
|
|
//}
|