Add Alot of stuff, Computer, repairStation, Whole game, Many things!

This commit is contained in:
2024-11-18 06:31:28 +01:00
parent 19b7964f83
commit a2091c3cf2
430 changed files with 55285 additions and 715 deletions

View File

@@ -0,0 +1,29 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class RepairHudController : MonoBehaviour
{
[SerializeField] private TextMeshProUGUI _currentItemText;
[SerializeField] private TextMeshProUGUI _timeToFixText;
[SerializeField] private TextMeshProUGUI _costToFixText;
private Object _currentObject;
RepairStationBehaviour _repairStationBehaviour;
public void SetObject(RepairStationBehaviour repairStationBehaviour, Object obj, float timeToFix, float costToFix) {
_currentObject = obj;
_repairStationBehaviour = repairStationBehaviour;
_currentItemText.text = obj.ObjectSo.objectName;
_timeToFixText.text = timeToFix.ToString();
_costToFixText.text = costToFix.ToString();
}
//Callback for if the player quits the UI without clicking the repair button
public void ConfirmRepair() {
_repairStationBehaviour.ConfirmRepair();
}
}