scene transfer fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user