Move player during load screens to prevent activating minimaps for current position
This commit is contained in:
@@ -105,6 +105,7 @@ public partial class Map : Node3D, IMap
|
|||||||
private void ClearCurrentMap()
|
private void ClearCurrentMap()
|
||||||
{
|
{
|
||||||
CurrentFloor?.CallDeferred(MethodName.QueueFree, []);
|
CurrentFloor?.CallDeferred(MethodName.QueueFree, []);
|
||||||
|
Player.TeleportPlayer(new Transform3D(Basis.Identity, new Vector3(-999, -999, -999)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetupDungeonFloor()
|
private void SetupDungeonFloor()
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ public partial class CorridorRoom : Node3D
|
|||||||
|
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
_room.BodyEntered += Room_BodyEntered;
|
if (_room != null)
|
||||||
|
_room.BodyEntered += Room_BodyEntered;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Room_BodyEntered(Node3D body)
|
private void Room_BodyEntered(Node3D body)
|
||||||
|
|||||||
Reference in New Issue
Block a user