revival/game/Assets/Scripts/Artefacts/ArtefactSystem.cs

18 lines
487 B
C#
Raw Normal View History

2021-02-23 14:05:42 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "KernelPanic/Artefacts/Artefact System")]
public class ArtefactSystem : ScriptableObject
{
[SerializeField] private DialogueSystem _dialogue;
[SerializeField] private ArtefactInventory _inventory;
public void FindArtefact(Artefact artefact)
{
_inventory.addA(artefact);
_dialogue.PlayLine(artefact.dialogueKey);
}
}