mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
I THINK IT FINALLY WORKS
This commit is contained in:
@@ -18,13 +18,7 @@ public class PortalManager : MonoBehaviour
|
||||
PortalCamera m_PortalCamera;
|
||||
|
||||
public PortalManager Linked() => m_OtherManager;
|
||||
|
||||
public Vector3 pos => transform.parent.position;
|
||||
public Quaternion rot => transform.parent.rotation;
|
||||
|
||||
public void SetPos(Vector3 v) => transform.parent.position = v;
|
||||
|
||||
public Vector3 PlayerOffset() => m_PlayerPoint.position;
|
||||
public Vector3 PlayerOffset() => m_PlayerPoint.localPosition;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
@@ -50,12 +44,4 @@ public class PortalManager : MonoBehaviour
|
||||
{
|
||||
m_PlayerPoint.position = CameraController.Instance().transform.position;
|
||||
}
|
||||
|
||||
public Vector3 TranslateOffsetToSpace(Vector3 pos, Vector3 euler)
|
||||
{
|
||||
m_Rot.localEulerAngles = euler;
|
||||
m_Pos.localPosition = pos;
|
||||
|
||||
return m_Pos.position;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user