// Update is called once per frame void Update() { lifeTimer.updateTimer(Time.deltaTime * timeManipulatableController.TimeFactor()); if (lifeTimeListener != null && LifeTimeEnded()) { NotifyLifeTimeListener(); } }
void FixedUpdate() { if (timeManipulatableController.TimeFactor() != 0.0f && timeManipulatableController.TimeFactor() != 1.0f) { rigidBody.AddForce( Physics.gravity * rigidBody.mass * rigidBody.velocity.y * Time.deltaTime, ForceMode.Acceleration ); } }