player can work now

This commit is contained in:
2023-04-10 18:01:16 +03:00
parent f2753a363b
commit 2f69a2b046
19 changed files with 267 additions and 64 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ public class Door : BaseInteractableObject
public override void Interact(Player player)
{
print($"Player go to {_scene}");
base.Interact(player);
if (!string.IsNullOrEmpty(_exitName))
{
PlayerPrefs.SetString("lastExitName", _exitName.ToLower());