public void StaggeredUpdate()
{
var ttime = time;
UpdateInstant();
//if (sunProperties != null) sunProperties = FindObjectOfType<SunProperties>();
//var currentSun = 0f;
//if (sunProperties != null) currentSun = sunProperties._sun.color.r;
//currentSun = updateCurve.Evaluate(ttime).r;
//Debug.Log(" sunChange:" + currentSun + ":" + (lastSun1 - currentSun));
var ttimerounded2 = Mathf.Round(ttime*sensetivityProps)/sensetivityProps;
if (Math.Abs(ttimerounded2 - propsLastUpdate) > 0.00001f) {
UpdateProps();
propsLastUpdate = ttimerounded2;
}
//if ((lastSun1 - currentSun) > (1/sensetivityProps)) {
// //UpdateProps();
// lastSun1 = currentSun;
//}
var ttimerounded = Mathf.Round(ttime*sensetivityProbes)/sensetivityProbes;
if (Math.Abs(ttimerounded - probesLastUpdated) > 0.00001f) {
UpdateProbes();
probesLastUpdated = ttimerounded;
}
//if ((lastSun2 - currentSun) > (1/sensetivityProbes)) {
// UpdateProbes();
// lastSun2 = currentSun;
//}
var ttimerounded3 = Mathf.Round(ttime*sensetivitySuns)/sensetivitySuns;
if (Math.Abs(ttimerounded3 - sunsLastUpdated) > 0.00001f) {
UpdateSuns();
sunsLastUpdated = ttimerounded3;
}
}