Ejemplo n.º 1
0
    private void Update()
    {
        if (PhotonNetwork.IsConnected && !photonView.IsMine)
        {
            return;
        }

        #region Keyboard inputs
        if (Input.GetButtonDown("Interact"))
        {
            pickItUp();
        }
        #endregion

        #region On-screen inputs
        if (controllerListener != null)
        {
            if (controllerListener.GetPickUpDown())
            {
                pickItUp();
            }
        }
        #endregion
    }