Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System; //ENUM NIGGA
- public class CharacterGenerator : MonoBehaviour {
- private PlayerCharacter _faget;
- // Use this for initialization
- void Start () {
- _faget = new PlayerCharacter ();
- _faget.Awake ();
- }
- // Update is called once per frame
- void Update () {
- }
- void OnGUI(){
- DisplayName ();
- DisplayAttributes ();
- DisplayVitals ();
- DisplaySkills ();
- }
- private void DisplayName () {
- GUI.Label (new Rect (10, 10, 50, 25), "Name:");
- _faget.Name = GUI.TextArea (new Rect (65, 10, 100, 35), _faget.Name);
- }
- private void DisplayAttributes ()
- {
- for (int cnt = 0; cnt < Enum.GetValues(typeof(AttributeName)).Length; cnt++) {
- GUI.Label (new Rect (10, 40 + (cnt * 25), 100, 25), ((AttributeName)cnt).ToString ());
- GUI.Label (new Rect (115, 40 + (cnt * 25), 30, 25), _faget.GetPrimaryAttribute (cnt).AdjustedBaseValue.ToString ());
- }
- }
- private void DisplayVitals() { }
- private void DisplaySkills(){ }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement