ItemState.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        if (stat.ArmorEquip == true) {
            txt.text = "Armor: defend +50";
        }

        if (stat.SwordEquip == true) {
            txt.text = "Sword: damage +100";
        }

        if (stat.BowEquip == true) {
            txt.text = "Bow: damage +50";
        }
    }

Usage Example

Example #1
0
 public void Update(GameTime gameTime)
 {
     ItemState.Update(gameTime);
 }