issue with fridge and OnContainerChanged

This commit is contained in:
2024-03-24 22:54:51 +02:00
parent df72d1bf46
commit 567fc7a1c2
5 changed files with 24 additions and 18 deletions
@@ -2,11 +2,11 @@ using UnityEngine;
public class CameraPlayerFollow : MonoBehaviour
{
private Vector3 _cameraOffset = new(0, 40, 0);
//private Vector3 _cameraOffset = new(0, 40, 0);
void LateUpdate()
{
Vector3 newPosition =
transform.position = Player.Instance.transform.position + _cameraOffset;
}
//void LateUpdate()
//{
// Vector3 newPosition =
// transform.position = Player.Instance.transform.position + _cameraOffset;
//}
}
+2 -1
View File
@@ -66,6 +66,7 @@ public class Player : BaseCharacter
{
AddTask(new PlayerTasks(Tasks.Move, point));
}
public async void Interact(BaseInteractableObject interactionItem)
{
var result = await interactionItem.ShowPopupMenu(this);
@@ -127,9 +128,9 @@ public class Player : BaseCharacter
public void ClearContainerItem()
{
OnContainerChanged.Invoke(this, false);
Destroy(_containerItem.gameObject);
_containerItem = null;
//OnContainerChanged.Invoke(this, false);
}
public ContainerItem GetContainerItem()