Exemple #1
0
    void OnMouseDown()
    {
        //Send selected object to Ui Manager
        UiManager.SetSelectedObject(this);

        //If Shift + Click
        if (Input.GetKey(KeyCode.LeftShift))
        {
            mainCamController.SetCamTarget(this);
            previewCamCtrlr.SetCamTarget(this);
        }

        dragtime = 0.0f;

        //Get mouse position on screen
        dragStart = gameObject.transform.position;
    }