Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
495 B
4
Indexable
Never
using UnityEngine;
using System;
using System.Collections;
using UnityEngine.UI;
using System.Collections.Generic;

[Serializable]
public class MonsterStats
{
    public string name;
    public int health = 100;
    public int attack = 10;
    public int defense = 5;
    public GameObject monsterPrefab;

    public void TakeDamage(int damage)
    {
        health -= damage;
        health = Mathf.Max(health, 0);
    }

    // Add other methods or properties as needed
}
Leave a Comment