fixes and improvements
This commit is contained in:
@@ -7,18 +7,14 @@ public class Door : BaseInteractableObject
|
||||
[SerializeField]
|
||||
private string _exitName;
|
||||
|
||||
private void Start()
|
||||
protected override void PrepareMenuActions()
|
||||
{
|
||||
if (PlayerPrefs.GetString("lastExitName") == _exitName.ToLower())
|
||||
{
|
||||
print($"Player came from to {_scene}");
|
||||
Player.Instance.SetPosition(_interactionPoint.position);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected override void PrepareMenuActions()
|
||||
{
|
||||
_menuActions[RadialMenuActions.Open].IsEnabled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user