refactor interact system
interact only after PopupItemMenu button clicked
This commit is contained in:
@@ -14,11 +14,11 @@ public class Door : BaseInteractableObject
|
||||
print($"Player came from to {_scene}");
|
||||
Player.Instance.SetPosition(_interactionPoint.position);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void Interact(Player player)
|
||||
{
|
||||
base.Interact(player);
|
||||
protected override void InteractAction()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(_exitName))
|
||||
{
|
||||
PlayerPrefs.SetString("lastExitName", _exitName.ToLower());
|
||||
|
||||
Reference in New Issue
Block a user