scene transfer fixes
This commit is contained in:
@@ -11,22 +11,11 @@ public class Door : BaseInteractableObject
|
||||
|
||||
protected override void PrepareMenuActions()
|
||||
{
|
||||
if (PlayerPrefs.GetString("lastExitName") == _exitName.ToLower())
|
||||
{
|
||||
print($"Player came from to {_scene}");
|
||||
Player.Instance.SetPosition(_interactionPoint.position);
|
||||
}
|
||||
|
||||
_menuActions[RadialMenuActions.Enter].IsEnabled = true;
|
||||
}
|
||||
|
||||
protected override void InteractAction(RadialMenuActions interactAction)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(_exitName))
|
||||
{
|
||||
PlayerPrefs.SetString("lastExitName", _exitName.ToLower());
|
||||
}
|
||||
|
||||
{
|
||||
GameManager.Instance.Scene.Change(_scene, _spawnPointInSceneName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user