2021-02-14 16:08:59 +01:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2021-02-19 16:14:14 +01:00
|
|
|
public class Artefact : ScriptableObject
|
2021-02-14 16:08:59 +01:00
|
|
|
{
|
2021-02-25 21:12:08 +01:00
|
|
|
[SerializeField] private PlayerPower _power;
|
2021-02-14 16:08:59 +01:00
|
|
|
|
2021-02-19 16:14:14 +01:00
|
|
|
public int artefactID => _artefactID;
|
|
|
|
[SerializeField] private int _artefactID;
|
|
|
|
public string artefactDialogue => _artefactDialogue;
|
|
|
|
[SerializeField] private string _artefactDialogue;
|
2021-02-14 16:08:59 +01:00
|
|
|
|
2021-02-19 16:14:14 +01:00
|
|
|
public bool show => _show;
|
|
|
|
private bool _show = false;
|
|
|
|
public bool canInteract => _canInteract;
|
|
|
|
private bool _canInteract = false;
|
2021-02-14 16:08:59 +01:00
|
|
|
|
2021-02-25 21:12:08 +01:00
|
|
|
public virtual void PowerUnlock()
|
|
|
|
{
|
|
|
|
_power.Unlock();
|
|
|
|
}
|
|
|
|
|
2021-02-14 16:08:59 +01:00
|
|
|
}
|