Partiially working Timeslot-change and Heat Reciever on Targets

This commit is contained in:
Thorbjoern
2025-07-19 13:02:31 +02:00
parent 13cd053279
commit 9fd840a8f8
43 changed files with 2571 additions and 263 deletions
+24
View File
@@ -0,0 +1,24 @@
using UnityEngine;
public class RecieveHeat : MonoBehaviour
{
private float heatLevel;
private Material myMat;
private void Start()
{
myMat = GetComponent<Renderer>().material;
}
public void SetHeat(float heat)
{
if (heat > 255) return;
heatLevel = heat;
myMat.color = new Color(heatLevel,0,0);
}
public void AddHeat(float heat)
{
heatLevel += heat;
myMat.color = new Color(heatLevel, 0, 0);
}
}