mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
It "works"
It's a buggy mess but it's a working buggy mess
This commit is contained in:
@@ -82,6 +82,9 @@ public partial class PlayerMovement : MonoBehaviour
|
||||
//
|
||||
Vector3 m_WallNormal;
|
||||
|
||||
//
|
||||
int m_PortalFrameCounter = 0;
|
||||
|
||||
// Only instance of the player
|
||||
static PlayerMovement s_Instance;
|
||||
|
||||
@@ -89,6 +92,8 @@ public partial class PlayerMovement : MonoBehaviour
|
||||
public static Vector3 Pos() => s_Instance.transform.position;
|
||||
public static void SetPos(Vector3 v) => s_Instance.transform.parent.position = v;
|
||||
public static GameObject Object() => s_Instance.gameObject;
|
||||
public static bool CanGoThroughPortals() => s_Instance.m_PortalFrameCounter == 0;
|
||||
public static PlayerMovement Instance() => s_Instance;
|
||||
|
||||
// Start is called before the first frame update
|
||||
private void Start()
|
||||
|
||||
Reference in New Issue
Block a user