Esempio n. 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
Esempio n. 2
0
    void GrantOwnership()
    {
        if (transform != GizmoController.SelectedObject)
        {
            if (GizmoController.SelectedObject != null)
            {
                GizmoController.SelectedObject.GetComponent <InteractableObject>().DoClearSelection();
            }
        }

        Debug.Log("Granted ownership");
        GizmoController.SetSelectedObject(transform);

        if (GizmoController.IsHidden())
        {
            GizmoController.Show();
        }

        photonView.RPC("MarkSelection", PhotonTargets.OthersBuffered, GameController.PlayerColor.r, GameController.PlayerColor.g, GameController.PlayerColor.b);
    }