Handle continuous interactions + Add Cleaning_workshop.prefab

This commit is contained in:
Antoine H 2021-01-08 11:05:45 +01:00
parent 6cce785d2c
commit 363845b456
11 changed files with 726 additions and 41 deletions

View file

@ -29,7 +29,7 @@ public class UITimer : MonoBehaviour
//Value : [0,1]
public void SetValue(float value)
{
if(value>1||value<0)
if(value>1.01||value<-0.01) //Add a bit of flexibility so it only display real bad use
Debug.LogWarning(gameObject.name+" - Timer value out of range [0,1]: "+value);
//Change time color
if(value>0.66)