Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        lifeTimer.updateTimer(Time.deltaTime * timeManipulatableController.TimeFactor());

        if (lifeTimeListener != null && LifeTimeEnded())
        {
            NotifyLifeTimeListener();
        }
    }
Esempio n. 2
0
 void FixedUpdate()
 {
     if (timeManipulatableController.TimeFactor() != 0.0f && timeManipulatableController.TimeFactor() != 1.0f)
     {
         rigidBody.AddForce(
             Physics.gravity * rigidBody.mass * rigidBody.velocity.y * Time.deltaTime,
             ForceMode.Acceleration
             );
     }
 }