Example #1
0
 protected override void OnDragDropStart()
 {
     //当拖拽开始时存储原始的父对象
     sourceParent = transform.parent.gameObject;
     prePos       = transform.localPosition;
     LuaToCSFunction.CallToLuaFunction("OnDragDropStart", ItemID);
     base.OnDragDropStart();
 }
Example #2
0
 //该方法用于获取拖拽的物体释放拖拽时,该物体所碰撞的对象
 //所以我们前面需要给Cell和Obj都添加Box Collider
 protected override void OnDragDropRelease(GameObject surface)
 {
     base.OnDragDropRelease(surface);
     LuaToCSFunction.CallToLuaFunction("OnDragDropRelease", gameObject, surface, ItemID);
 }
Example #3
0
 public void Destroy()
 {
     ObjectPoolManager.Instance.PoolDestroy(ui);
     LuaFramework.Util.ClearMemory();
     LuaToCSFunction.CallToLuaFunction("LoadingComplete");
 }