comment pass

This commit is contained in:
2022-12-29 16:16:49 +01:00
parent 643e03192a
commit ff01a700bd
75 changed files with 634 additions and 65 deletions

View File

@@ -3,21 +3,21 @@ using UnityEngine;
namespace EscapeRoomEngine.VR.Runtime
{
/// <summary>
/// The player component contains references to the main camera, eye positions and hand positions of the VR player.
/// </summary>
public class Player : MonoBehaviour
{
public static Player Current
/// <summary>
/// The active player instance.
/// </summary>
public static Player Instance { get; private set; }
private void Awake()
{
get
{
if (_foundPlayer == null)
{
_foundPlayer = FindObjectOfType<Player>();
}
return _foundPlayer;
}
Instance = this;
}
private static Player _foundPlayer;
[BoxGroup("Internal")] public new Camera camera;
[BoxGroup("Internal")] [SerializeField] private Transform leftEye, rightEye;
[BoxGroup("Internal")] [SerializeField] private Collider leftHand, rightHand;