Exemple #1
0
    public void Select(Selection controller, Vector3 uiPosition)
    {
        if (controller.currentSelection != null)
        {
            controller.currentSelection.GetComponent <ModelingObject> ().DeSelect(controller);
        }

        if (controller.otherController.currentSelection != null)
        {
            controller.otherController.currentSelection.GetComponent <ModelingObject> ().DeSelect(controller);
        }

        Collider.SetActive(false);

        if (connectedObject != null)
        {
            connectedObject.Select(controller, uiPosition);
            //	ObjectsManager.Instance.DisableObjectsExcept (connectedObject);
        }
    }