revival/game/Assets/Scripts/Artefacts/Power/PowerArtefactControl.cs

20 lines
395 B
C#
Raw Normal View History

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);
}
}