示例#1
0
    }    //OnMouseEnter

    void OnMouseDown()
    {
        if (GC == null)
        {
            return;
        }

        if (GC.IsOverAxis())
        {
            return;
        }

        GC.SetSelectedObject(transform);

        if (GC.IsHidden())
        {
            GC.Show(GizmoControllerCS.GIZMO_MODE.TRANSLATE);
        }
    }    //OnMouseDown
示例#2
0
    void OnMouseDown()
    {
        if (UIController.OverUI())
        {
            return;
        }

        if (GameController.IsPlayMode || GameController.IsConnected == false)
        {
            return;
        }

        if (GizmoController == null)
        {
            return;
        }

        if (GizmoController.IsOverAxis())
        {
            return;
        }

        if (photonView.isMine)
        {
            GrantOwnership();
            return;
        }

        if (photonView.ownerId == PhotonNetwork.player.ID)
        {
            Debug.Log("Not requesting ownership. Already mine.");
            return;
        }
        Debug.Log("Requesting ownership");
        photonView.RequestOwnership();
    }