This commit is contained in:
parent
17f9471884
commit
7ac40f8ca5
|
@ -4,6 +4,7 @@ using UnityEngine;
|
|||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
using Competition.Mysql.Model;
|
||||
using LitJson;
|
||||
|
||||
public class ModelItem : MonoBehaviour
|
||||
{
|
||||
|
@ -28,7 +29,8 @@ public class ModelItem : MonoBehaviour
|
|||
btn.onClick.AddListener(() =>
|
||||
{
|
||||
//调前端方法,打开启动器
|
||||
Application.ExternalCall("StartModel", modelData.ModelId);
|
||||
Application.ExternalCall("StartModel", JsonMapper.ToJson(modelData));
|
||||
Debug.Log(JsonMapper.ToJson(modelData));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue