// Update is called once per frame override protected void Update() { base.Update(); m_SC.update(); m_timer += Time.deltaTime; if (opening) { for (int i = 0; i < doors.Length; i++) { doors[i].transform.localPosition = Vector3.Lerp(doors[i].transform.localPosition, offsets[i], 0.99f * Time.deltaTime); } } UpdateLightMaterial(); }
// Update is called once per frame void Update() { m_SC.update(); m_timer += Time.deltaTime; if (m_player.flashlightToggledThisFrame) { if (m_player.flashlightOn) { m_viewbox.size = m_curViewbox * m_torchOnViewboxMultiplier; } else { m_viewbox.size = m_curViewbox; } } myAnim.SetFloat("MovementIntensity", m_navAgent.velocity.magnitude / 3); }
// Update is called once per frame override protected void Update() { base.Update(); m_SC.update(); }