EnemyBase.Update C# (CSharp) Méthode

Update() public méthode

Called once per frame.
public Update ( ) : void
Résultat void
    void Update()
    {
        if (Health == 0)
        {
            return;
        }

        this.Move();
        this.ApplyDebuffs();
    }

Usage Example

 /// <summary>
 /// Update
 /// </summary>
 public void Update()
 {
     enemy.Update();
     // update enemy animation
     enemy.Animation();
 }