refactor player assets into own assembly

This commit is contained in:
2022-11-25 13:55:23 +01:00
parent 11f1b313c6
commit a5b8e4d131
56 changed files with 62 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
using UnityEngine;
namespace EscapeRoomEngine.Portal.Runtime
{
public class PlayerCamera : MonoBehaviour
{
public new Camera camera;
[SerializeField] private Transform leftEye, rightEye;
public Transform GetEyeTransform(Camera.StereoscopicEye eye) =>
eye == Camera.StereoscopicEye.Left ? leftEye : rightEye;
}
}