32 lines
564 B
C#
32 lines
564 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class ConstructBase : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField] private int naniteCost = 1;
|
||
|
|
||
|
// Start is called before the first frame update
|
||
|
private void Start()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
private void Update()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
// called whenever the player collects the resources from this construct
|
||
|
public void Interact()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public int Disassemble()
|
||
|
{
|
||
|
Destroy(gameObject);
|
||
|
return naniteCost;
|
||
|
}
|
||
|
|
||
|
public int GetCost()
|
||
|
{
|
||
|
return naniteCost;
|
||
|
}
|
||
|
}
|