EnemyBase.Update C# (CSharp) Method

Update() public method

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

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

Usage Example

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