Ejemplo n.º 1
0
    void WaitFind(string _key, int _step, string _fullName, float curWidth, float curHeight, Vector3 arrowPositon, Vector3 arrowRotate, int zoomType, bool IsSaveToServer, bool isScroll, CreateJianTouDelEvent _CreateJianTouDelEvent, float correctionScale, Vector3 correction, bool IsCloseGuide)
    {
        Transform targetTran = null;

        targetTran = mRootTran.Find(_fullName);
        if (targetTran != null)
        {
            for (int i = 0; i < mJianTouNameList.Count; i++)
            {
                if (mJianTouNameList[i].JianTouName == (_fullName + _key + _step))
                {
                    mJianTouNameList.RemoveAt(i);
                }
            }

            if (isScroll)
            {
                UIDragScrollView scroll = targetTran.GetComponent <UIDragScrollView>();
                if (scroll != null)
                {
                    scroll.enabled = false;
                }
            }

            getGUIBeginnerGuide().ShowArrowBootMode(correction, correctionScale, curWidth, curHeight, arrowPositon, arrowRotate, zoomType);

            JianTouObject tJianTouObject = new JianTouObject();
            tJianTouObject.JianTouName = _fullName + _key + _step;
            tJianTouObject.Key         = _key;
            tJianTouObject.Value       = _step;

            tJianTouObject.IsCloseGuide   = IsCloseGuide;
            tJianTouObject.IsSaveToServer = IsSaveToServer;
            mJianTouNameList.Add(tJianTouObject);

            NGUITools.SetActive(mTalkTargetObj, false);

            if (_CreateJianTouDelEvent != null)
            {
                _CreateJianTouDelEvent(tJianTouObject);
            }
        }
    }
Ejemplo n.º 2
0
    // 创建引导箭头//
    private bool NewSetJianTouPos(string _key, int _step, string _fullName, float curWidth, float curHeight, Vector3 correction, Vector3 arrowPositon, Vector3 arrowRotate, bool IsSaveToServer = true, int zoomType = 0, bool IsCloseGuide = false, bool isScroll = false, float correctionScale = 1, CreateJianTouDelEvent _CreateJianTouDelEvent = null)
    {
        if (!mIsOpenTeach)
        {
            return(false);
        }

        if (null == mRootTran)
        {
            return(false);
        }
        WaitFind(_key, _step, _fullName, curWidth, curHeight, arrowPositon, arrowRotate, zoomType, IsSaveToServer, isScroll, _CreateJianTouDelEvent, correctionScale, correction, IsCloseGuide);
        return(true);
    }