Untitled

 avatar
unknown
plain_text
2 years ago
495 B
6
Indexable
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
}
Editor is loading...
Leave a Comment