comment pass
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user