diff --git a/Assets/EnemyFight.cs b/Assets/EnemyFight.cs new file mode 100644 index 0000000..edaa367 --- /dev/null +++ b/Assets/EnemyFight.cs @@ -0,0 +1,23 @@ +using UnityEngine; +using System.Collections; +using UnityEngine.UI; + +public class EnemyFight : MonoBehaviour { + + // Use this for initialization + void Start () { + var input = gameObject.GetComponent (); + var se= new InputField.SubmitEvent(); + se.AddListener(SubmitName); + input.onEndEdit = se; + } + private void SubmitName(string arg0) + { + Debug.Log (arg0); + } + // Update is called once per frame + void Update () { + + + } +} diff --git a/Assets/EnemyFight.cs.meta b/Assets/EnemyFight.cs.meta new file mode 100644 index 0000000..f8bdc30 --- /dev/null +++ b/Assets/EnemyFight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77c883f4f0687ba47a0e328d2d3a59b6 +timeCreated: 1442009521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/TextBox.cs b/Assets/TextBox.cs new file mode 100644 index 0000000..69cf379 --- /dev/null +++ b/Assets/TextBox.cs @@ -0,0 +1,36 @@ +using UnityEngine; + + +//YOU MUST USE THIS LINE TO GET ACCESS TO UI STUFF +using UnityEngine.UI; + + + +using System.Collections; + +public class TextBox : MonoBehaviour { + + public float Str; + public string StrString; + public Text textRef; + + + // Use this for initialization + void Start () { + Str = 0; + + + } + + // Update is called once per frame + void Update () { + + } + + public void ClickTest(string text){ + Debug.Log (text); + Str = Random.Range (1, 10); + StrString = Str.ToString(); + textRef.text = StrString; + } +} diff --git a/Assets/TextBox.cs.meta b/Assets/TextBox.cs.meta new file mode 100644 index 0000000..5d761f5 --- /dev/null +++ b/Assets/TextBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 883361593e6c3d9489ce3691a2f73a34 +timeCreated: 1441920716 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/WriteText.unity b/Assets/WriteText.unity new file mode 100644 index 0000000..7ee1666 Binary files /dev/null and b/Assets/WriteText.unity differ diff --git a/Assets/WriteText.unity.meta b/Assets/WriteText.unity.meta new file mode 100644 index 0000000..483756c --- /dev/null +++ b/Assets/WriteText.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a0a2011e795927489ecc480c9521982 +timeCreated: 1441920697 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/numGen.cs b/Assets/numGen.cs new file mode 100644 index 0000000..2f15a15 --- /dev/null +++ b/Assets/numGen.cs @@ -0,0 +1,92 @@ +using UnityEngine; +using System.Collections; +using UnityEngine.UI; + +public class numGen : MonoBehaviour { + + // + + public string Name = "Yohan Von Spoot"; + public float Hp; + public float Dmg; + public int Str; + public int Dex; + public int Con; + public int Intel; + public int Wis; + public int Chr; + + public Text Hpstat; + public Text Dmgstat; + public Text Strstat; + public Text Dexstat; + public Text Constat; + public Text Intelstat; + public Text Wisstat; + public Text Chrstat; + + public string HpString; + public string DmgString; + public string StrString; + public string DexString; + public string ConString; + public string IntelString; + public string WisString; + public string ChrString; + + // Use this for initialization + void Start () { + + } + + // Update is called once per frame + void Update () { + + } + public void ClickTest(string text){ + //stat generaltion roll 3d6 + Str = (Random.Range (1, 6)) + (Random.Range (1, 6)) + (Random.Range (1, 6)); + Dex = (Random.Range (1, 6)) + (Random.Range (1, 6)) + (Random.Range (1, 6)); + Con = (Random.Range (1, 6)) + (Random.Range (1, 6)) + (Random.Range (1, 6)); + Intel = (Random.Range (1, 6)) + (Random.Range (1, 6)) + (Random.Range (1, 6)); + Wis = (Random.Range (1, 6)) + (Random.Range (1, 6)) + (Random.Range (1, 6)); + Chr = (Random.Range (1, 6)) + (Random.Range (1, 6)) + (Random.Range (1, 6)); + + //Console check + //Debug.Log (Str); + //Debug.Log (Dex); + //Debug.Log (Con); + //Debug.Log (Intel); + //Debug.Log (Wis); + //Debug.Log (Chr); + + //HP generation roll 1d8 + 10% Con bonus + Hp = (Random.Range (1, 8)) + (Con * 0.10f); + Debug.Log (Hp); + + //Damage Modifier + Debug.Log (Str * 0.20f); + Dmg = (Random.Range (1, 6)) + (Str * 0.20f); + + //Converts stat int to string + HpString = Hp.ToString (); + DmgString = Dmg.ToString (); + StrString = Str.ToString (); + DexString = Dex.ToString (); + ConString = Con.ToString (); + IntelString = Intel.ToString (); + WisString = Wis.ToString (); + ChrString = Chr.ToString (); + + //Display these dope stats + Hpstat.text = "Hp = " + HpString; + Dmgstat.text = "Dmg = " + DmgString; + Strstat.text = "Str = " + StrString; + Dexstat.text = "Dex = " + DexString; + Constat.text = "Con = " + ConString; + Intelstat.text = "Intel = " + IntelString; + Wisstat.text = "Wis = " + WisString; + Chrstat.text = "Chr = " + ChrString; + + } +} diff --git a/Assets/numGen.cs.meta b/Assets/numGen.cs.meta new file mode 100644 index 0000000..f8afea8 --- /dev/null +++ b/Assets/numGen.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25e3162309fa0d14bb3e5c790a617466 +timeCreated: 1441921814 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/stats.unity b/Assets/stats.unity new file mode 100644 index 0000000..fe0eb0f Binary files /dev/null and b/Assets/stats.unity differ diff --git a/Assets/stats.unity.meta b/Assets/stats.unity.meta new file mode 100644 index 0000000..8cf6397 --- /dev/null +++ b/Assets/stats.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 073a6d82d73e1224c91607728d8ef382 +timeCreated: 1441907410 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..6b53f4b Binary files /dev/null and b/ProjectSettings/AudioManager.asset differ diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..617b993 Binary files /dev/null and b/ProjectSettings/DynamicsManager.asset differ diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..99f74cd Binary files /dev/null and b/ProjectSettings/EditorBuildSettings.asset differ diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..66862ba Binary files /dev/null and b/ProjectSettings/EditorSettings.asset differ diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..f685118 Binary files /dev/null and b/ProjectSettings/GraphicsSettings.asset differ diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..f8a40e6 Binary files /dev/null and b/ProjectSettings/InputManager.asset differ diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..7a7ddd2 Binary files /dev/null and b/ProjectSettings/NavMeshAreas.asset differ diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..c10515d Binary files /dev/null and b/ProjectSettings/NetworkManager.asset differ diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..802881c Binary files /dev/null and b/ProjectSettings/Physics2DSettings.asset differ diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..07fb4f4 Binary files /dev/null and b/ProjectSettings/ProjectSettings.asset differ diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..c609863 --- /dev/null +++ b/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 5.1.3f1 +m_StandardAssetsVersion: 0 diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..85cebc7 Binary files /dev/null and b/ProjectSettings/QualitySettings.asset differ diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..628c056 Binary files /dev/null and b/ProjectSettings/TagManager.asset differ diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..ffa3d90 Binary files /dev/null and b/ProjectSettings/TimeManager.asset differ