Update() public method

public Update ( ) : void
return void
Example #1
0
 // Update is called once per frame
 void Update()
 {
     health.Update();
     if (health.Dead())
     {
         playerAlive = false;
         deathReason = "You got mauled by a zombie!";
     }
 }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     m_health.Update();
     m_movement.Update();
     m_groundDetection.Update();
 }
Example #3
0
    private void Update()
    {
        float health = Mathf.Floor(ph.Update());

        healthText.text = health.ToString();
    }