Update() public method

public Update ( ) : void
return void
コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     health.Update();
     if (health.Dead())
     {
         playerAlive = false;
         deathReason = "You got mauled by a zombie!";
     }
 }
コード例 #2
0
ファイル: PlayerController.cs プロジェクト: T-Scod/2DSideGame
 // Update is called once per frame
 void Update()
 {
     m_health.Update();
     m_movement.Update();
     m_groundDetection.Update();
 }
コード例 #3
0
    private void Update()
    {
        float health = Mathf.Floor(ph.Update());

        healthText.text = health.ToString();
    }