Add building to city

This commit is contained in:
Vova
2023-03-06 21:32:00 +02:00
parent c1a471ae5e
commit 4182e84464
32 changed files with 2562 additions and 149 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ public class Door : BaseInteractableObject
private void Start()
{
if (PlayerPrefs.GetString("lastExitName") == _enterName)
if (PlayerPrefs.GetString("lastExitName") == _enterName.ToLower())
{
print($"Player came from to {_scene}");
Player.Instance.SetPosition(_interactionPoint.position);
@@ -24,7 +24,7 @@ public class Door : BaseInteractableObject
print($"Player go to {_scene}");
if (!string.IsNullOrEmpty(_exitName))
{
PlayerPrefs.SetString("lastExitName", _exitName);
PlayerPrefs.SetString("lastExitName", _exitName.ToLower());
}
SceneManager.LoadScene(_scene);
}