Exemple #1
0
    void VRTelePointEnter(IMessage msg)
    {
        PlayceEnterMessage pem = (PlayceEnterMessage)msg.Data;

        if (pem.coll == _coll)
        {
            if (pem.wsid != null)
            {
                CreateHumanShadow(pem.wsid);
            }
            else
            {
                if (pem.teleportKind == WsTeleportKind.myself || pem.teleportKind == WsTeleportKind.all)
                {
                    CreateHumanShadow(mStaticThings.I.mAvatarID);
                }
                else if (pem.teleportKind == WsTeleportKind.single)
                {
                    CreateHumanShadow(mStaticThings.I.NowSelectedAvararid);
                }
            }

            isEnter = true;
            ChangeMat(playcetip_sel);
            DOTween.Kill(_coll);
            _tip.transform.DOLocalMoveZ(0.00178f, 0.8f).SetEase(Ease.OutBack).SetId(_coll);
            tipKuang.transform.DOLocalMoveZ(0.00108f, 0.8f).SetEase(Ease.OutBack).SetId(_coll);
        }
    }
Exemple #2
0
    void VRTelePointEnter(IMessage msg)
    {
        PlayceEnterMessage pem = (PlayceEnterMessage)msg.Data;

        if (pem.coll == _coll)
        {
            ChangeMat(playcetip_sel);
            DOTween.Kill(_coll);
            _tip.transform.DOScale(new Vector3(1.6f, 1.6f, 1.6f), 0.6f).SetEase(Ease.OutBack).SetId(_coll);
            _sphere.transform.DOScale(new Vector3(1.4f, 1.4f, 1.4f), 0.4f).SetEase(Ease.Linear).SetId(_coll);
            int           i      = 0;
            List <string> wslist = getlist();
            foreach (var item in _VRPlayceDots)
            {
                if (i < wslist.Count)
                {
                    PlayceEnterMessage enterobj = new PlayceEnterMessage
                    {
                        coll         = item._coll,
                        teleportKind = WsTeleportKind.all,
                        wsid         = wslist[i]
                    };
                    MessageDispatcher.SendMessage(this, VrDispMessageType.VRPlaycePointEnter.ToString(), enterobj, 0);
                    i++;
                }
                else
                {
                    return;
                }
            }
        }
    }
Exemple #3
0
    void VRTelePointExit(IMessage msg)
    {
        PlayceEnterMessage pem = (PlayceEnterMessage)msg.Data;

        if (pem.coll == _coll)
        {
            isEnter = false;
            ChangeMat(playcetip_normal);
            DOTween.Kill(_coll);
            _tip.transform.DOLocalMoveZ(0, 0.3f).SetId(_coll);
            tipKuang.transform.DOLocalMoveZ(0, 0.3f).SetId(_coll);
            DeleteHumanShadow();
        }
    }
Exemple #4
0
    void VRTelePointExit(IMessage msg)
    {
        PlayceEnterMessage pem = (PlayceEnterMessage)msg.Data;

        if (pem.coll == _coll)
        {
            ChangeMat(playcetip_normal);
            DOTween.Kill(_coll);
            _tip.transform.DOScale(new Vector3(1f, 1f, 1f), 0.3f).SetEase(Ease.Linear).SetId(_coll);
            _sphere.transform.DOScale(new Vector3(1f, 1f, 1f), 0.3f).SetEase(Ease.Linear).SetId(_coll);
            foreach (var item in _VRPlayceDots)
            {
                PlayceEnterMessage exitobj = new PlayceEnterMessage
                {
                    coll         = item._coll,
                    teleportKind = WsTeleportKind.all,
                    wsid         = ""
                };
                MessageDispatcher.SendMessage(this, VrDispMessageType.VRPlaycePointExit.ToString(), exitobj, 0);
            }
        }
    }