public static void Load(ModelEvents _me, Vector2 _v2Position) { if (s_instance == null) { GameObject v_go = Instantiate(Resources.Load("RightMenuEvent/ModelEventsManager")) as GameObject; ModelEventsManager v_mem = v_go.GetComponent <ModelEventsManager>(); } s_instance.Load(_me, _v2Position); }
// 加载脚本实例时调用 Awake private void Awake() { if (s_instance == null) { s_instance = this; } else { Debug.LogError("F**K"); } }
public void OnPointerClick(PointerEventData eventData) { Debug.Log("<b>屏幕位置</b>" + Get屏幕位置(eventData)); ModelEventsManager.Load(this, Get屏幕位置(eventData)); }