} //OnMouseEnter void OnMouseDown() { if (GC == null) { return; } if (GC.IsOverAxis()) { return; } GC.SetSelectedObject(transform); if (GC.IsHidden()) { GC.Show(GizmoControllerCS.GIZMO_MODE.TRANSLATE); } } //OnMouseDown
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); }