Guest User

Untitled

a guest
Jun 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Enemy : MonoBehaviour
  5. {
  6.     // we need a public instance of our BaseAttributes
  7.     public BaseAttributes attributes = new BaseAttributes() { maxHealth = 100; };
  8. }
  9.  
  10. [System.Serializable]
  11. public class BaseAttributes
  12. {
  13.     public int maxHealth;
  14. }
Add Comment
Please, Sign In to add comment