Add building to city
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user