Example #1
0
    public void LoadCanvasBox()
    {
        CanvasUnitBG unitBg = TouchMoveManager.GetCanvasUnitBG(Int2.zero);

        if (unitBg)
        {
            m_GoCanvasBox = GameObjectLoader.LoadPath("Prefabs/Others/", "CanvasBox", WndManager.GetWndRoot().transform);
            Vector3 worldPos = unitBg.transform.position;
            NGUIUtil.Set3DUIPos(m_GoCanvasBox, worldPos);
        }
    }