Exemplo n.º 1
0
 void Awake()
 {
     m_PackRightBtnManager = CreatObjectToNGUI.InstantiateObj(RightBtnManagerPrefab, transform).GetComponent <PackRightBtnManager>();
     m_PackRightBtnManager.transform.localPosition = RightBtnHidPos;
     BackBtn.SetCallBackFuntion(Close);
     Linkpanel = CreatObjectToNGUI.InstantiateObj(PathLinkPanelPrefab, transform).GetComponent <PathLinkPanel>();
     Linkpanel.transform.localPosition = new Vector3(0, 0, -1000);
     //TaskGuideBtnRegister();
 }
Exemplo n.º 2
0
        void ShowLinkpanel()
        {
            if (Linkpanel == null)
            {
                Linkpanel = CreatObjectToNGUI.InstantiateObj(PathLinkPanelPrefab, transform).GetComponent <PathLinkPanel>();
            }
            Linkpanel.Show(CurrentItem);
            Vector3 from = new Vector3(250, 0, -1);
            Vector3 to   = new Vector3(150, 0, -1);

            TweenPosition.Begin(Linkpanel.gameObject, 0.07f, from, to);
        }