Ejemplo n.º 1
0
        public static SoftGuideView Create(Transform parent, int id, StatusType status)
        {
            GameObject go = Instantiate <GameObject>(ResMgr.instance.Load <GameObject>(PREFAB_PATH));

            go.transform.SetParent(parent, false);
            SoftGuideView view = go.GetComponent <SoftGuideView>();

            view.id = id;
            view.AddListener(parent);
            view.SetStatus(status);

            return(view);
        }
Ejemplo n.º 2
0
 static int OnClickSoftGuideView(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.SoftGuide.Model.SoftGuideProxy obj  = (Logic.UI.SoftGuide.Model.SoftGuideProxy)ToLua.CheckObject(L, 1, typeof(Logic.UI.SoftGuide.Model.SoftGuideProxy));
         Logic.UI.SoftGuide.View.SoftGuideView   arg0 = (Logic.UI.SoftGuide.View.SoftGuideView)ToLua.CheckUnityObject(L, 2, typeof(Logic.UI.SoftGuide.View.SoftGuideView));
         obj.OnClickSoftGuideView(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }