Hi,
following code issues an error
float TimeModifier = 5.0f;
Time EndTime = Time.time + TimeModifier;
"error CS0029: Cannot implicitly convert type `float' to `UnityEngine.Time'"
Also when trying to compare time another error is outputed: "error CS0019: Operator `>' cannot be applied to operands of type `float' and `UnityEngine.Time'"
if (Time.time > EndTime) break;
↧