scene transfer fixes

This commit is contained in:
Vova
2023-12-11 20:30:23 +02:00
parent 0c4d9b2481
commit d9273466ef
10 changed files with 87047 additions and 87051 deletions
+2 -1
View File
@@ -25,10 +25,11 @@ public class SceneManager
{
foreach (var spawn in spawnPoints)
{
if (spawn.name == _spawnLocationName)
if (spawn.name.ToLower() == _spawnLocationName.ToLower())
{
var interactable = spawn.GetComponent<BaseInteractableObject>();
Player.Instance.SetPosition(interactable._interactionPoint.position);
Player.Instance.Rotate(interactable._interactionPoint.forward * -1);
}
}
}