public static void Door_UpdateAction(InstalledObject obj, float deltaTime) { //Debug.Log("Door_UpdateAction"); if (obj.GetParameter("openingState") >= 1) { obj.ChangeParameter("openness", deltaTime * 4); if (obj.GetParameter("openness") >= 1) { obj.SetParameter("openingState", 0); } } else { obj.ChangeParameter("openness", deltaTime * -4); } obj.SetParameter("openness", Mathf.Clamp01(obj.GetParameter("openness"))); if (obj.CbOnInstalledObjectChanged != null) { obj.CbOnInstalledObjectChanged(obj); } }