revival/game/Assets/Scripts/Artefacts/Power/PowerArtefactControl.cs
Novvator 7e06b98577 Added Artefact inheritance
PowerArtefacts now can unlock PlayerPowers
2021-02-25 14:21:35 +00:00

20 lines
395 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PowerArtefactControl : ArtefactControl
{
[SerializeField] private PlayerPower _power;
protected override void PickUp(int id)
{
if (_canInteract == true)
{
_power.Unlock();
Debug.Log("overrided physical");
}
base.PickUp(id);
}
}