issue with fridge and OnContainerChanged
This commit is contained in:
@@ -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;
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user