Первый коммит с LFS.

This commit is contained in:
vladislove committed 2026-01-11 17:04:23 +03:00
1 parent 4fcb1e2f24
commit 179816dc4b
5084 files changed
+3714098 -1

No files matched your search

@@ -0,0 +1,39 @@
using UnityEngine;
namespace Quest_Environment.Q3
{
public class PickupRagAction : MonoBehaviour, IInteractable
{
[Header("Settings")]
public ItemData ragItemData;
public void Interact()
{
if (!(QuestManager.Instance?.currentQuest is Q3_WipeSurfacesQuest))
{
Debug.Log("I have no reason to pick this up right now.");
return;
}
bool added = InventorySystem.Instance.AddItem(ragItemData);
if (added)
{
if (InteractionHandler.Instance != null)
{
InteractionHandler.Instance.NotifyInteraction(gameObject);
}
Destroy(gameObject);
}
}
public string GetDescription()
{
if (QuestManager.Instance?.currentQuest is Q3_WipeSurfacesQuest)
{
return "Take the rag";
}
return "";
}
}
}