Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Enemy : MonoBehaviour
- {
- // we need a public instance of our BaseAttributes
- public BaseAttributes attributes = new BaseAttributes() { maxHealth = 100; };
- }
- [System.Serializable]
- public class BaseAttributes
- {
- public int maxHealth;
- }
Add Comment
Please, Sign In to add comment