Ejemplo n.º 1
0
    public void onBagItemDoubleClick(UnityEngine.GameObject go)
    {
        Debug.Log("double click");
        //FrameBagIndex fbi = frameBagDic[go.transform.parent.gameObject];
        //KnapsakItem ki = KnapSackInfo.inst.allKanpItems[fbi.FrameIndex][fbi.BagIndex];
        //ki.OnUse();
        UInt64 serialnum = go.GetComponent <knapsackDragDropItem>().serialnum;

        KBEngine.Avatar player = (KBEngine.Avatar)KBEngineApp.app.player();
        player.baseCall("ItemUse", new object[] { serialnum });
    }